From f35d026194af2d4b429400529d229c0da3a796e3 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 28 Sep 2014 12:53:17 +0200 Subject: [PATCH] =?UTF-8?q?Le=20calendrier=20annuel=20utilise=20aussi=20un?= =?UTF-8?q?=20ic=C3=B4ne=20pour=20les=20evts=20nationaux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/events/index.html.haml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/events/index.html.haml b/app/views/events/index.html.haml index 6e246c71..6e68220d 100644 --- a/app/views/events/index.html.haml +++ b/app/views/events/index.html.haml @@ -17,12 +17,14 @@ title: ->(start_date) { raw link_to l(start_date, format: :month), root_url(start_date: start_date), class: 'month_selector' } do |date, events| .day_number= date.day - %ul.events + %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(title="#{display_date(event)}") + - if event.locality? + %em.locality.fa.fa-li.fa-globe = link_to event do - %strong.city= event.city + %strong.city(title="#{event.address}")= event.city = event.title - else @@ -39,11 +41,11 @@ %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(class="#{event.locality? ? 'national' : 'local'}" title="#{display_date(event)}") + %li.event(title="#{display_date(event)}") - if event.locality? - %em.locality.fa.fa-li.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}") + %em.locality.fa.fa-li.fa-globe = link_to event do - %strong.city(title="#{event.full_address}")= event.city + %strong.city(title="#{event.address}")= event.city = event.title .formats