2014-01-05 22:10:11 +01:00
|
|
|
%h2
|
|
|
|
=t '.title'
|
2014-10-28 00:23:11 +01:00
|
|
|
«
|
2014-01-05 22:10:11 +01:00
|
|
|
%em= params[:id]
|
2014-10-28 00:23:11 +01:00
|
|
|
»
|
|
|
|
|
2014-10-29 11:42:07 +01:00
|
|
|
%nav
|
|
|
|
= link_to tags_path, class: :back do
|
|
|
|
%em.fa.fa-arrow-left
|
|
|
|
= Event.human_attribute_name(:tag).pluralize
|
|
|
|
\/
|
2014-10-31 14:33:39 +01:00
|
|
|
= link_to events_path tag: params[:id] do
|
2014-10-31 14:24:40 +01:00
|
|
|
%em.fa.fa-calendar
|
|
|
|
Agenda
|
|
|
|
\/
|
2014-10-31 14:33:39 +01:00
|
|
|
= link_to events_path format: :rss, tag: params[:id] do
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.fa.fa-rss
|
2014-10-31 14:24:40 +01:00
|
|
|
RSS
|
2014-10-29 11:42:07 +01:00
|
|
|
\/
|
2014-10-31 14:33:39 +01:00
|
|
|
= link_to events_path format: :ics, tag: params[:id] do
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.fa.fa-th-list
|
2014-10-31 14:24:40 +01:00
|
|
|
iCal
|
2014-10-29 11:42:07 +01:00
|
|
|
\/
|
2014-10-31 14:33:39 +01:00
|
|
|
= link_to maps_path tag: params[:id] do
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.fa.fa-map-marker
|
2014-10-31 14:24:40 +01:00
|
|
|
OpenStreetMap
|
|
|
|
\/
|
2014-10-31 14:33:39 +01:00
|
|
|
= link_to maps_path format: :json, tag: params[:id] do
|
2014-10-31 14:24:40 +01:00
|
|
|
%em.fa.fa-dot-circle-o
|
|
|
|
GeoJSON
|
2014-10-28 00:23:11 +01:00
|
|
|
|
2014-10-29 11:42:07 +01:00
|
|
|
- if @events_future.any? || @events_past.any?
|
|
|
|
%fieldset
|
|
|
|
%legend
|
|
|
|
%em.fa.fa-calendar
|
|
|
|
= Event.model_name.human.pluralize
|
|
|
|
- if @events_future.any?
|
|
|
|
%h3=raw t 'future', count: @events_future.count
|
|
|
|
%ul.fa-ul
|
|
|
|
- @events_future.order('start_time asc').each do |event|
|
|
|
|
%li
|
|
|
|
= link_to event do
|
2014-10-31 14:24:40 +01:00
|
|
|
- if event.locality?
|
|
|
|
%em.locality.fa-li.fa.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
|
|
|
- else
|
|
|
|
%em.locality.fa-li.fa.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.city= event.city
|
|
|
|
= event.title
|
2014-10-31 14:24:40 +01:00
|
|
|
.date= display_date event
|
2014-01-05 22:10:11 +01:00
|
|
|
|
2014-10-29 11:42:07 +01:00
|
|
|
- if @events_past.any?
|
|
|
|
%h3=raw t 'past', count: @events_past.count
|
|
|
|
%ul.fa-ul
|
|
|
|
- @events_past.order('start_time desc').each do |event|
|
|
|
|
%li
|
|
|
|
= link_to event do
|
2014-10-31 14:24:40 +01:00
|
|
|
- if event.locality?
|
|
|
|
%em.locality.fa-li.fa.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
|
|
|
- else
|
|
|
|
%em.locality.fa-li.fa.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.city= event.city
|
|
|
|
= event.title
|
2014-10-31 14:24:40 +01:00
|
|
|
.date= display_date event
|
2014-01-05 22:10:11 +01:00
|
|
|
|
2014-10-29 11:42:07 +01:00
|
|
|
#map.events(data-url="#{maps_path format: :json, tag: params[:id]}")
|