2024-06-18 14:22:37 +02:00
|
|
|
#header-navigation.fr-nav
|
2023-10-30 15:37:04 +01:00
|
|
|
%ul.fr-nav__list
|
|
|
|
- if params[:controller] == 'users/commencer'
|
|
|
|
%li.fr-nav__item
|
|
|
|
= link_to t('back', scope: [:layouts, :header]), url_for(:back), title: t('back_title', scope: [:layouts, :header]), class: 'fr-nav__link', "aria-controls" => "modal-header__menu"
|
|
|
|
|
|
|
|
%li.fr-nav__item
|
2024-07-22 15:02:55 +02:00
|
|
|
= link_to t('files', scope: [:layouts, :header]), dossiers_path, class: 'fr-nav__link', aria: { current: (controller_name == 'dossiers' && action_name != 'deleted_dossiers') ? 'true' : nil, controls: "modal-header__menu" }
|
|
|
|
|
|
|
|
- if current_user.deleted_dossiers.present?
|
|
|
|
%li.fr-nav__item
|
|
|
|
= link_to 'Historique des dossiers supprimés', deleted_dossiers_path(), class: 'fr-nav__link', aria: { current: action_name == 'deleted_dossiers' ? 'true' : nil, controls: "modal-header__menu" }
|