Better tag display
This commit is contained in:
parent
fe01a849ff
commit
b1ce7a0ec9
@ -1,21 +1,21 @@
|
|||||||
-# Used in pages header, event.show and tag.show
|
-# Used in pages header, event.show and tag.show
|
||||||
|
|
||||||
- if tags.include? 'libre-en-fete'
|
- if tags.include? 'libre-en-fete'
|
||||||
= t '.link' if action_name == 'show'
|
= t '.link' if %w[show edit].include? action_name
|
||||||
%a(href='https://www.libre-en-fete.net')
|
%a(href='https://www.libre-en-fete.net')
|
||||||
= image_tag 'lef.png', width: '180', height: '60', alt: 'Libre en Fête',
|
= image_tag 'lef.png', width: '180', height: '60', alt: 'Libre en Fête',
|
||||||
style: 'vertical-align: middle'
|
style: 'vertical-align: middle'
|
||||||
|
|
||||||
- elsif tags.include? 'linux-presentation-day'
|
- elsif tags.include? 'linux-presentation-day'
|
||||||
= t '.link' if action_name == 'show'
|
= t '.link' if %w[show edit].include? action_name
|
||||||
%a(href='http://www.linux-presentation-day.org')
|
%a(href='http://www.linux-presentation-day.org')
|
||||||
= image_tag 'linux-presentation-day.png', width: '150', height: '75',
|
= image_tag 'linux-presentation-day.png', width: '150', height: '75',
|
||||||
alt: 'Linux presentation day', style: 'vertical-align: middle'
|
alt: 'Linux presentation day', style: 'vertical-align: middle'
|
||||||
|
|
||||||
- elsif action_name != 'show'
|
- elsif action_name == 'index'
|
||||||
%em.fa.fa-tag
|
%em.fa.fa-tag
|
||||||
= params[:tag]
|
= params[:tag]
|
||||||
|
|
||||||
- if action_name != 'show'
|
- if action_name == 'index'
|
||||||
%a(href="?tag=")
|
%a(href="?tag=")
|
||||||
%em.fa.fa-times
|
%em.fa.fa-times
|
||||||
|
Loading…
Reference in New Issue
Block a user