Avis: add avis link in header
This commit is contained in:
parent
88c27479ee
commit
d1540c4a68
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue