Skip to content

Commit

Permalink
change content_tag to item_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yulii committed Apr 29, 2013
1 parent 269a8b6 commit a2da59c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/snipp/markups/microdata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ def breadcrumb paths, options = {}
bc = []
paths.each do |e|
if e.is_a?(Hash)
body = content_tag :span, I18n.t(e[:label], i18n_options.merge(default: e[:label])), itemprop: :title
body = item_tag :span, I18n.t(e[:label], i18n_options.merge(default: e[:label])), prop: :title
bc.push link_to body, e[:path], itemprop: :url
else
body = content_tag :span, I18n.t(e, i18n_options), itemprop: :title
body = item_tag :span, I18n.t(e, i18n_options), prop: :title
bc.push link_to body, send("#{e}_path"), itemprop: :url
end
end
Expand All @@ -35,7 +35,7 @@ def breadcrumb paths, options = {}

def geo latitude, longitude, options = {}
item_tag :span, prop: :geo, scope: true, type: :geo, class: "geo" do
"#{content_tag :span, latitude, itemprop: :latitude}#{content_tag :span, longitude, itemprop: :longitude}".html_safe
"#{item_tag :span, latitude, prop: :latitude}#{item_tag :span, longitude, prop: :longitude}".html_safe
end
end

Expand Down

0 comments on commit a2da59c

Please sign in to comment.