gretel 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gretel/helper_methods.rb +3 -3
- metadata +3 -3
@@ -42,7 +42,7 @@ module Gretel
|
|
42
42
|
if link_last
|
43
43
|
out = link_to_if(link_last, crumb.link.text, crumb.link.url, crumb.link.options.merge(:class => "current"))
|
44
44
|
else
|
45
|
-
if options[:
|
45
|
+
if options[:use_microformats]
|
46
46
|
out = content_tag(:span, crumb.link.text, :class => "current", :itemprop => "title")
|
47
47
|
else
|
48
48
|
out = content_tag(:span, crumb.link.text, :class => "current")
|
@@ -52,7 +52,7 @@ module Gretel
|
|
52
52
|
while parent = crumb.parent
|
53
53
|
last_parent = parent.name
|
54
54
|
crumb = Crumbs.get_crumb(parent.name, parent.object)
|
55
|
-
if options[:
|
55
|
+
if options[:use_microformats]
|
56
56
|
out = content_tag(:div, link_to(content_tag(:span, crumb.link.text, :itemprop => "title"), crumb.link.url, crumb.link.options.merge(:itemprop => "url")) + " ", :itemscope => "", :itemtype => "http://data-vocabulary.org/Breadcrumb") + " " + separator + " " + out
|
57
57
|
else
|
58
58
|
out = link_to(crumb.link.text, crumb.link.url, crumb.link.options) + " " + separator + " " + out
|
@@ -62,7 +62,7 @@ module Gretel
|
|
62
62
|
# TODO: Refactor this
|
63
63
|
if options[:autoroot] && name != :root && last_parent != :root
|
64
64
|
crumb = Crumbs.get_crumb(:root)
|
65
|
-
if options[:
|
65
|
+
if options[:use_microformats]
|
66
66
|
out = content_tag(:div, link_to(content_tag(:span, crumb.link.text, :itemprop => "title"), crumb.link.url, crumb.link.options.merge(:itemprop => "url")) + " ", :itemscope => "", :itemtype => "http://data-vocabulary.org/Breadcrumb") + " " + separator + " " + out
|
67
67
|
else
|
68
68
|
out = link_to(crumb.link.text, crumb.link.url, crumb.link.options) + " " + separator + " " + out
|
metadata
CHANGED