agenda-libre-ruby/app/views/pages/_search.haml

29 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-10-17 15:47:43 +02:00
- if action_name == 'index' && controller_name != 'tags'
.digest
- if params[:tag].present?
%span.tag
- if params[:tag].include? 'libre-en-fete'
%a(href='https://www.libre-en-fete.net')
= image_tag 'lef.png', width: '180', height: '60',
alt: 'Libre en Fete', style: 'vertical-align: middle'
- elsif params[:tag].include? 'linux-presentation-day'
%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'
- else
%em.fa.fa-tag
= params[:tag]
2018-10-17 15:47:43 +02:00
%a(href="?tag=")
%em.fa.fa-times
- if params[:near].present? && params[:near][:location].present? && params[:near][:distance].present?
2018-10-17 15:47:43 +02:00
%span.near
%em.fa.fa-map-pin
= params[:near][:location]
%em.fa.fa-arrows-alt-h
= params[:near][:distance]
km
%a(href="?near=")
%em.fa.fa-times