14 lines
340 B
Ruby
14 lines
340 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: {
|
|
region: @orga.region,
|
|
placename: @orga.city,
|
|
position: "#{@orga.city.try :latitude}; #{@orga.city.try :longitude}"
|
|
}
|
|
end
|
|
end
|