You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
agenda-libre-ruby/app/helpers/orgas_helper.rb

15 lines
368 B

# Helper for the orga views
module OrgasHelper
def orga_meta(orga)
set_meta_tags \
description: strip_tags(orga.description),
DC: { title: orga.name },
geo: {
placename: orga.city,
region: orga.region,
position: "#{orga.latitude};#{orga.longitude}",
ICBM: "#{orga.latitude}, #{orga.longitude}"
}
end
end