navlinks 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/navlinks/helper.rb +1 -7
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/navlinks/helper.rb
CHANGED
@@ -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
|
-
|
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
|