navlinks 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/navlinks/helper.rb +1 -7
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
@@ -17,16 +17,10 @@ module Navlinks
17
17
  label = translate(area, :scope => 'navigation', :default => area.to_s)
18
18
 
19
19
  if nav_current?(area)
20
- current_label = translate([ area, 'current' ].join('_'), :scope => 'navigation', :default => label)
21
- decorate_current( current_label )
20
+ translate([ area, 'current' ].join('_'), :scope => 'navigation', :default => label)
22
21
  else
23
22
  label
24
23
  end
25
24
  end
26
-
27
-
28
- def decorate_current( current_label )
29
- "[ #{current_label} ]"
30
- end
31
25
  end
32
26
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 4
9
- version: 0.1.4
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dmitry Ratnikov