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

15 lines
484 B
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?
= render partial: '/tags/context', locals: { tags: params[:tag] }
2018-10-17 15:47:43 +02:00
- 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