2019-06-25 22:27:24 +02:00
|
|
|
- event_meta @event
|
2014-08-06 14:47:47 +02:00
|
|
|
|
2019-04-21 18:09:31 +02:00
|
|
|
= render partial: '/tags/context', locals: { tags: @event.tag_list }
|
2016-03-01 23:19:47 +01:00
|
|
|
|
2014-07-07 11:33:07 +02:00
|
|
|
%h2
|
2014-09-28 00:16:25 +02:00
|
|
|
- if @event.locality?
|
2014-12-13 00:28:44 +01:00
|
|
|
%em.locality.fa.fa-globe{ title: t('attributes.locality_1') }
|
2014-09-28 00:16:25 +02:00
|
|
|
- else
|
2018-02-11 13:13:41 +01:00
|
|
|
%em.locality.fa.fa-shield-alt{ title: t('attributes.locality_0') }
|
2014-12-13 00:28:44 +01:00
|
|
|
%em.city{ title: @event.full_address }= @event.city
|
2014-08-06 14:47:47 +02:00
|
|
|
= title @event.title
|
2014-07-07 11:33:07 +02:00
|
|
|
|
2018-07-14 21:56:39 +02:00
|
|
|
= render 'aside' if [controller_name, action_name] == %w[events show]
|
2013-12-29 23:25:38 +01:00
|
|
|
|
2019-06-25 22:27:24 +02:00
|
|
|
%p= display_date @event
|
2013-12-29 23:25:38 +01:00
|
|
|
|
2014-08-26 16:51:52 +02:00
|
|
|
%p.full_address
|
2015-03-08 23:41:52 +01:00
|
|
|
- if @event.place_name.present?
|
2019-04-29 18:29:38 +02:00
|
|
|
%span.place_name= @event.place_name
|
2014-09-03 18:49:17 +02:00
|
|
|
- if @event.address.present?
|
2019-04-29 18:29:38 +02:00
|
|
|
%span.address= @event.address
|
|
|
|
%span.city= @event.city
|
|
|
|
%span.region
|
2019-10-06 16:54:37 +02:00
|
|
|
= t @event.region.code.presence || @event.region.name, scope: :countries,
|
|
|
|
default: @event.region.name
|
2014-08-23 16:59:42 +02:00
|
|
|
|
|
|
|
- if @event.latitude && @event.longitude
|
2016-09-11 17:40:49 +02:00
|
|
|
.event#map{ data: { url: maps_path(format: :json),
|
|
|
|
latitude: @event.latitude, longitude: @event.longitude } }
|
2013-12-29 23:25:38 +01:00
|
|
|
|
2014-09-21 14:32:59 +02:00
|
|
|
- elsif controller.action_name != 'show'
|
|
|
|
%em.fa.fa-compress
|
|
|
|
%em
|
2019-10-06 16:54:37 +02:00
|
|
|
= t '.noMap'
|
2018-11-27 19:27:20 +01:00
|
|
|
%a{ target: '_blank',
|
2020-01-04 12:42:37 +01:00
|
|
|
href: "https://osm.org/search?query=#{@event.full_address}" }
|
2019-10-06 16:54:37 +02:00
|
|
|
= image_tag 'osm_logo.svg', alt: 'OSM logo', width: '32px'
|
2014-09-21 14:32:59 +02:00
|
|
|
|
2014-06-21 18:53:05 +02:00
|
|
|
.description
|
2014-10-26 17:13:19 +01:00
|
|
|
= description sanitize @event.description,
|
2018-01-01 17:52:33 +01:00
|
|
|
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],
|
|
|
|
attributes: %w[href src width height style title]
|
2013-12-29 23:25:38 +01:00
|
|
|
|
2015-02-28 17:28:05 +01:00
|
|
|
%h3
|
|
|
|
%em.fa.fa-info-circle
|
|
|
|
= t '.infos'
|
2020-01-04 12:42:37 +01:00
|
|
|
%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
|
2016-09-11 17:40:49 +02:00
|
|
|
|
2018-09-23 18:06:52 +02:00
|
|
|
- if @event.repeat&.positive? && @event.rule
|
2016-09-11 17:40:49 +02:00
|
|
|
%h3
|
2020-01-04 12:42:37 +01:00
|
|
|
%em.fa.fa-redo-alt
|
2016-09-17 17:19:41 +02:00
|
|
|
= @event.schedule
|
2016-09-11 17:40:49 +02:00
|
|
|
|
2016-09-17 17:19:41 +02:00
|
|
|
- if @event.moderated?
|
|
|
|
%ul
|
|
|
|
%li= link_to_unless_current @event.event || @event, @event.event || @event
|
|
|
|
- (@event.event || @event).events.each do |e|
|
|
|
|
%li= link_to_unless_current e, e
|