Quick correction so that the libre en fete test does not break events without tags

This commit is contained in:
echarp 2016-04-08 18:14:14 +02:00
parent 523cf0f517
commit 28fe903d58
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
%li.event{ title: display_date(event) }
- if event.locality?
%em.locality.fa.fa-globe
- elsif event.tags.include? 'libre-en-fete'
- elsif event.tags && event.tags.include? 'libre-en-fete'
= image_tag 'lef-small.png', alt: 'LEF', width: 16, height: 16
= link_to event do
%strong.city{ title: event.address }= event.city

View File

@ -1,6 +1,6 @@
- set_event_meta
- if @event.tags.include? 'libre-en-fete'
- if @event.tags && @event.tags.include? 'libre-en-fete'
Cet événement s'inscrit dans le cadre de
%a(href='http://www.libre-en-fete.net')
= image_tag 'lef.png', width: '180', height: '60', alt: 'Libre en Fete',