The iconic flower is back in tag listings
This commit is contained in:
echarp 2019-04-24 21:10:22 +02:00
parent ad0c37e467
commit e11eb00c1e
3 changed files with 11 additions and 5 deletions

View File

@ -50,3 +50,7 @@ ul.ui-autocomplete li
.ui-state-active
margin: 0
background-color: #F0F8FF
body.tags .event[class*='libre-en-fete-']
h3:before, & > a:before
content: url(lef-small.png)

View File

@ -1,13 +1,15 @@
-# Used in pages header, event.show and tag.show
- if tags.include? 'libre-en-fete'
= t '.link' if %w[show edit].include? action_name
- if tags.to_s.include? 'libre-en-fete'
- if controller_name != 'tags' && %w[show edit].include?(action_name)
= t '.link'
%a(href='https://www.libre-en-fete.net')
= image_tag 'lef.png', width: '180', height: '60', alt: 'Libre en Fête',
style: 'vertical-align: middle'
- elsif tags.include? 'linux-presentation-day'
= t '.link' if %w[show edit].include? action_name
- if controller_name != 'tags' && %w[show edit].include?(action_name)
= t '.link'
%a(href='http://www.linux-presentation-day.org')
= image_tag 'linux-presentation-day.png', width: '150', height: '75',
alt: 'Linux presentation day', style: 'vertical-align: middle'

View File

@ -39,7 +39,7 @@
GeoJSON
- @events_future.order('start_time asc').each do |event|
%article.event
%article.event{ class: event.tag_list }
%h3
= link_to event do
%em.city= event.city
@ -63,7 +63,7 @@
= t '.count', count: @events_past.count
%ul.fa-ul
- @events_past.order('start_time desc').each do |event|
%li
%li.event{ class: event.tag_list }
= link_to event do
- if event.locality?
%em.locality.fa-li.fa.fa-globe