|
|
|
@ -39,13 +39,13 @@
|
|
|
|
|
%ul.events.fa-ul
|
|
|
|
|
- events.select { |e| (e.start_time.to_date..e.end_time.to_date).cover? date }
|
|
|
|
|
- .sort_by { |e| e.city }.each do |event|
|
|
|
|
|
%li.event
|
|
|
|
|
%li.event(class="#{event.locality? ? 'national' : 'local'}" title="#{display_date(event)}")
|
|
|
|
|
- if event.locality?
|
|
|
|
|
%em.fa.fa-li.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
|
|
|
|
%em.locality.fa.fa-li.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
|
|
|
|
- else
|
|
|
|
|
%em.fa.fa-li.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
|
|
|
|
%em.locality.fa.fa-li.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
|
|
|
|
= link_to event do
|
|
|
|
|
%strong.city= event.city
|
|
|
|
|
%strong.city(title="#{event.full_address}")= event.city
|
|
|
|
|
= event.title
|
|
|
|
|
|
|
|
|
|
.formats
|
|
|
|
|