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

15 lines
368 B
Ruby
Raw Normal View History

2015-02-15 17:10:17 +01:00
# Helper for the orga views
module OrgasHelper
2019-06-25 22:27:24 +02:00
def orga_meta(orga)
2015-02-15 17:10:17 +01:00
set_meta_tags \
2019-06-25 22:27:24 +02:00
description: strip_tags(orga.description),
DC: { title: orga.name },
2015-02-15 17:10:17 +01:00
geo: {
2019-06-25 22:27:24 +02:00
placename: orga.city,
region: orga.region,
position: "#{orga.latitude};#{orga.longitude}",
ICBM: "#{orga.latitude}, #{orga.longitude}"
2015-02-15 17:10:17 +01:00
}
end
end