2014-01-05 22:10:11 +01:00
|
|
|
%h2
|
2016-10-18 15:37:03 +02:00
|
|
|
%em.fa.fa-tag
|
2016-10-19 14:31:00 +02:00
|
|
|
= title params[:id]
|
2018-09-03 23:55:52 +02:00
|
|
|
\-
|
2018-10-17 18:42:46 +02:00
|
|
|
%em.fa.fa-forward
|
2018-09-03 23:55:52 +02:00
|
|
|
= t '.count', count: @events_future.count
|
|
|
|
|
2020-02-04 17:56:45 +01:00
|
|
|
- unless params[:iframe]
|
|
|
|
= render '/maps/tag'
|
2014-10-28 00:23:11 +01:00
|
|
|
|
2020-02-04 17:56:45 +01:00
|
|
|
= render 'aside'
|
2014-01-05 22:10:11 +01:00
|
|
|
|
2017-05-07 19:29:56 +02:00
|
|
|
- @events_future.order('start_time asc').each do |event|
|
2019-04-24 21:10:22 +02:00
|
|
|
%article.event{ class: event.tag_list }
|
2016-10-19 14:31:00 +02:00
|
|
|
%h3
|
2017-05-07 21:44:24 +02:00
|
|
|
= link_to event do
|
|
|
|
%em.city= event.city
|
|
|
|
= event.title
|
2017-05-07 19:29:56 +02:00
|
|
|
%p.full_address
|
|
|
|
- if event.place_name.present?
|
|
|
|
%span= event.place_name
|
|
|
|
- if event.address.present?
|
|
|
|
%span= event.address
|
|
|
|
%p= display_date event
|
|
|
|
.description
|
2018-09-03 23:55:52 +02:00
|
|
|
= sanitize event.description,
|
|
|
|
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]
|
2014-01-05 22:10:11 +01:00
|
|
|
|
2017-05-07 19:29:56 +02:00
|
|
|
- if @events_past.any?
|
|
|
|
%h2
|
|
|
|
%em.fa.fa-backward
|
|
|
|
= t '.past'
|
2018-09-03 23:55:52 +02:00
|
|
|
\-
|
|
|
|
= t '.count', count: @events_past.count
|
2017-05-07 19:29:56 +02:00
|
|
|
%ul.fa-ul
|
|
|
|
- @events_past.order('start_time desc').each do |event|
|
2019-04-24 21:10:22 +02:00
|
|
|
%li.event{ class: event.tag_list }
|
2017-05-07 19:29:56 +02:00
|
|
|
= link_to event do
|
|
|
|
- if event.locality?
|
|
|
|
%em.locality.fa-li.fa.fa-globe
|
|
|
|
%em.city{ title: event.address }= event.city
|
|
|
|
= event.title
|
|
|
|
.date= display_date event
|