diff --git a/app/views/events/index.html.haml b/app/views/events/index.html.haml index 70f9d280..415915fa 100644 --- a/app/views/events/index.html.haml +++ b/app/views/events/index.html.haml @@ -3,7 +3,8 @@ = render '/regions/selector' -= render '/lugs/search' +- cache do + = render '/lugs/search' - if params[:year] -# Whole year calendar @@ -46,21 +47,22 @@ %strong.city= event.city.gsub '-', ' ' = event.title -.formats - %em.fa.fa-rss - =raw t '.calendar_in', - rss: link_to('RSS', events_url(:rss, - tag: params[:tag], region: params[:region])), - webcal: link_to('webcal', events_url(:rss, - tag: params[:tag], protocol: 'webcal', format: :ics, tag: params[:tag], region: params[:region])), - ical: link_to('iCal', events_url(:rss, - tag: params[:tag], format: :ics, tag: params[:tag], region: params[:region])) +- cache do + .formats + %em.fa.fa-rss + =raw t '.calendar_in', + rss: link_to('RSS', events_url(:rss, + tag: params[:tag], region: params[:region])), + webcal: link_to('webcal', events_url(:rss, + tag: params[:tag], protocol: 'webcal', format: :ics, tag: params[:tag], region: params[:region])), + ical: link_to('iCal', events_url(:rss, + tag: params[:tag], format: :ics, tag: params[:tag], region: params[:region])) -%a#banner(href='http://april.org/campagne') - -#%img(src='http://www.april.org/campagne/images/priorite-logiciel-libre-je-soutiens-april.png' - width='580' height='76' alt='Priorité au Logiciel Libre! Je soutiens l\'April.') - = image_tag 'priorite-logiciel-libre-je-soutiens-april_2_m.png', - width: '374', height: '48', - alt: 'Priorité au Logiciel Libre! Je soutiens l\'April.' + %a#banner(href='http://april.org/campagne') + -#%img(src='http://www.april.org/campagne/images/priorite-logiciel-libre-je-soutiens-april.png' + width='580' height='76' alt='Priorité au Logiciel Libre! Je soutiens l\'April.') + = image_tag 'priorite-logiciel-libre-je-soutiens-april_2_m.png', + width: '374', height: '48', + alt: 'Priorité au Logiciel Libre! Je soutiens l\'April.' - set_events_meta