Quick correction so that the libre en fete test does not break events without tags
This commit is contained in:
parent
523cf0f517
commit
28fe903d58
@ -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
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user