demarches-normaliennes/app/views/new_gestionnaire/dossiers/_header.html.haml

28 lines
1.7 KiB
Text
Raw Normal View History

2017-07-18 15:12:55 +02:00
.backoffice-header
.container
2017-08-02 16:20:01 +02:00
.flex.justify-between
%ul.breadcrumbs
%li
= link_to dossier.procedure.libelle.truncate_words(10), procedure_path(dossier.procedure), title: dossier.procedure.libelle
2017-08-02 16:20:01 +02:00
%li
= "Dossier nº #{dossier.id}"
%div
= render partial: "state_button", locals: { dossier: dossier }
= render partial: "new_gestionnaire/procedures/dossier_actions", locals: { procedure: dossier.procedure, dossier: dossier, dossier_is_followed: current_gestionnaire&.follow?(dossier) }
2017-07-18 15:12:55 +02:00
%ul.tabs
2017-08-30 15:31:36 +02:00
- notifications_summary = dossier.notifications_summary
%li{ class: current_page?(dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
2017-08-30 15:31:36 +02:00
- if notifications_summary[:demande]
%span.notifications{ 'aria-label': 'notifications' }
= link_to "Demande", dossier_path(dossier.procedure, dossier)
%li{ class: current_page?(annotations_privees_dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
= link_to "Annotations Privées", annotations_privees_dossier_path(dossier.procedure, dossier)
2017-09-26 14:38:16 +02:00
%li{ class: current_page?(avis_dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
2017-09-27 11:55:56 +02:00
- if notifications_summary[:avis]
2017-08-30 15:31:36 +02:00
%span.notifications{ 'aria-label': 'notifications' }
2017-09-26 14:38:16 +02:00
= link_to "Avis Externes", avis_dossier_path(dossier.procedure, dossier)
%li{ class: current_page?(messagerie_dossier_path(dossier.procedure, dossier)) ? 'active' : nil }
2017-08-30 15:31:36 +02:00
- if notifications_summary[:messagerie]
%span.notifications{ 'aria-label': 'notifications' }
= link_to "Messagerie", messagerie_dossier_path(dossier.procedure, dossier)