snipp 0.0.1 → 0.0.2
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.
- data/lib/snipp/helpers/action_view_extension.rb +7 -2
- data/lib/snipp/version.rb +1 -1
- metadata +1 -1
@@ -12,8 +12,13 @@ module Snipp
|
|
12
12
|
|
13
13
|
bc = []
|
14
14
|
paths.each do |e|
|
15
|
-
|
16
|
-
|
15
|
+
if e.is_a?(Hash)
|
16
|
+
body = content_tag :span, e[:label], itemprop: :title
|
17
|
+
bc.push link_to body, e[:path], itemprop: :url
|
18
|
+
else
|
19
|
+
body = content_tag :span, I18n.t(e, i18n_options), itemprop: :title
|
20
|
+
bc.push link_to body, send("#{e}_path", options), itemprop: :url
|
21
|
+
end
|
17
22
|
end
|
18
23
|
code = '<nav class="breadcrumb" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">'
|
19
24
|
code << bc.join(sepalator)
|
data/lib/snipp/version.rb
CHANGED