|
|
|
@ -33,7 +33,7 @@
|
|
|
|
|
%em |
|
|
|
|
= t '.noMap' |
|
|
|
|
%a{ target: '_blank', |
|
|
|
|
href: 'https://osm.org/search?query=' + @event.full_address } |
|
|
|
|
href: "https://osm.org/search?query=#{@event.full_address}" } |
|
|
|
|
= image_tag 'osm_logo.svg', alt: 'OSM logo', width: '32px' |
|
|
|
|
|
|
|
|
|
.description |
|
|
|
@ -44,29 +44,32 @@
|
|
|
|
|
%h3 |
|
|
|
|
%em.fa.fa-info-circle |
|
|
|
|
= t '.infos' |
|
|
|
|
- if @event.url.present? |
|
|
|
|
%p |
|
|
|
|
%em.fa.fa-external-link-alt |
|
|
|
|
%span.label= Event.human_attribute_name :url |
|
|
|
|
= link_to @event.url, @event.url |
|
|
|
|
- if @event.contact.present? |
|
|
|
|
%p |
|
|
|
|
%em.fa.fa-envelope |
|
|
|
|
%span.label= Event.human_attribute_name :contact |
|
|
|
|
= mail_to @event.contact, nil, |
|
|
|
|
encode: (request.format == 'text/html' ? :javascript : nil), |
|
|
|
|
replace_at: ' CHEZ ', replace_dot: ' POINT ' |
|
|
|
|
|
|
|
|
|
- if @event.tags&.present? |
|
|
|
|
%p.tags |
|
|
|
|
%em.fa.fa-tags |
|
|
|
|
%span.label= Event.human_attribute_name :tags |
|
|
|
|
- @event.tags.each do |tag| |
|
|
|
|
= link_to tag, tag_path(tag.name), rel: :tag |
|
|
|
|
%dl |
|
|
|
|
- if @event.url.present? |
|
|
|
|
%dt.url |
|
|
|
|
%em.fa.fa-external-link-alt |
|
|
|
|
= Event.human_attribute_name :url |
|
|
|
|
%dd |
|
|
|
|
= link_to @event.url, @event.url |
|
|
|
|
- if @event.contact.present? |
|
|
|
|
%dt.contact |
|
|
|
|
%em.fa.fa-envelope |
|
|
|
|
= Event.human_attribute_name :contact |
|
|
|
|
%dd |
|
|
|
|
= mail_to @event.contact, nil, |
|
|
|
|
encode: (request.format == 'text/html' ? :javascript : nil), |
|
|
|
|
replace_at: ' CHEZ ', replace_dot: ' POINT ' |
|
|
|
|
- if @event.tags&.any? |
|
|
|
|
%dt.tags |
|
|
|
|
%em.fa.fa-tags |
|
|
|
|
= Event.human_attribute_name :tags |
|
|
|
|
%dd |
|
|
|
|
- @event.tags.each do |tag| |
|
|
|
|
= link_to tag, tag_path(tag.name), rel: :tag |
|
|
|
|
|
|
|
|
|
- if @event.repeat&.positive? && @event.rule |
|
|
|
|
%h3 |
|
|
|
|
%em.fa.fa-repeat |
|
|
|
|
%em.fa.fa-redo-alt |
|
|
|
|
= @event.schedule |
|
|
|
|
|
|
|
|
|
- if @event.moderated? |
|
|
|
|