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

15 lines
374 B
Ruby

# Helper for the orga views
module OrgasHelper
def set_orga_meta
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