agenda-libre-ruby/app/helpers/lugs_helper.rb

15 lines
325 B
Ruby

# Helper for the lug views
module LugsHelper
def set_lug_meta
set_meta_tags \
description: @lug.url,
DC: { title: @lug.name },
geo: {
region: @lug.region,
placename: @lug.city,
position: "#{@lug.city.try :latitude};" \
+ "#{@lug.city.try :longitude}"
}
end
end