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

14 lines
517 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] }
- else
= render '/orgas/search'
2018-10-17 15:47:43 +02:00
- if params[:tag].blank? && (params[:near].blank? || params[:near][:location].blank?)
= link_to page_path('filter'), class: 'filter' do
= t 'title', scope: 'pages.filter'
= link_to page_path('filter'), title: t('title', scope: 'pages.filter') do
%em.fa.fa-angle-double-right