Avis: add avis link in header

This commit is contained in:
Simon Lehericey 2017-09-06 11:13:59 +02:00
parent 88c27479ee
commit d1540c4a68

View file

@ -7,9 +7,14 @@
%img{ src: image_url("header/logo-tps.svg") }
- if gestionnaire_signed_in?
- current_url = request.path_info
%ul.header-tabs
%li
= link_to "Procédures", procedures_path, class: "active"
- if current_gestionnaire.procedures.count > 0
%li
= link_to "Procédures", procedures_path, class: (controller_name != 'avis') ? "active" : nil
- if current_gestionnaire.avis.count > 0
%li
= link_to "Avis", avis_index_path, class: (controller_name == 'avis') ? "active" : nil
%li
= link_to "Ancienne interface", backoffice_dossiers_path