5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-02 13:56:07 +00:00
panel/app/views/posts/attribute_ro/_geo.haml
2020-02-16 19:51:43 -03:00

10 lines
332 B
Plaintext

- lat = metadata.value['lat']
- lng = metadata.value['lng']
%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td
= link_to t('posts.attributes.geo.uri'), "geo:#{lat},#{lng}"
%br/
= link_to t('posts.attributes.geo.osm'),
"https://www.openstreetmap.org/?mlat=#{lat}&mlon=#{lng}#map=9/#{lat}/#{lng}"