From f08d4e9dc039c95e6bb558b6e8e490f2246f6008 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 9 Sep 2022 13:08:24 +0200 Subject: [PATCH] fix(breadcrumb): extends breadcrumb libelle truncation from 4 to 10 words --- app/views/administrateurs/archives/index.html.haml | 2 +- .../administrateurs/attestation_templates/edit.html.haml | 2 +- .../administrateurs/dossier_submitted_messages/edit.html.haml | 2 +- app/views/administrateurs/experts_procedures/index.html.haml | 2 +- app/views/administrateurs/groupe_instructeurs/index.html.haml | 4 ++-- .../groupe_instructeurs/reaffecter_dossiers.html.haml | 2 +- app/views/administrateurs/groupe_instructeurs/show.html.haml | 2 +- .../jeton_particulier/api_particulier.html.haml | 2 +- app/views/administrateurs/jeton_particulier/show.html.haml | 2 +- app/views/administrateurs/mail_templates/edit.html.haml | 2 +- app/views/administrateurs/mail_templates/index.html.haml | 2 +- .../administrateurs/procedure_administrateurs/index.html.haml | 2 +- app/views/administrateurs/procedures/annotations.html.haml | 2 +- app/views/administrateurs/procedures/champs.html.haml | 2 +- app/views/administrateurs/procedures/close.html.haml | 2 +- app/views/administrateurs/procedures/edit.html.haml | 2 +- app/views/administrateurs/procedures/jeton.html.haml | 2 +- app/views/administrateurs/procedures/modifications.html.haml | 2 +- app/views/administrateurs/procedures/monavis.html.haml | 2 +- app/views/administrateurs/procedures/publication.html.haml | 2 +- app/views/administrateurs/procedures/show.html.haml | 2 +- app/views/administrateurs/procedures/transfert.html.haml | 2 +- app/views/administrateurs/services/edit.html.haml | 2 +- app/views/administrateurs/services/index.html.haml | 2 +- app/views/administrateurs/services/new.html.haml | 2 +- app/views/administrateurs/sources_particulier/show.html.haml | 2 +- .../administrateurs/types_de_champ/_insert.turbo_stream.haml | 2 +- app/views/instructeurs/archives/index.html.haml | 2 +- app/views/instructeurs/groupe_instructeurs/index.html.haml | 2 +- app/views/instructeurs/groupe_instructeurs/show.html.haml | 2 +- .../instructeurs/procedures/email_notifications.html.haml | 2 +- app/views/instructeurs/procedures/email_usagers.html.haml | 2 +- app/views/instructeurs/procedures/stats.html.haml | 2 +- 33 files changed, 34 insertions(+), 34 deletions(-) diff --git a/app/views/administrateurs/archives/index.html.haml b/app/views/administrateurs/archives/index.html.haml index 20558827c..b98f6f1f8 100644 --- a/app/views/administrateurs/archives/index.html.haml +++ b/app/views/administrateurs/archives/index.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Export et Archives']] } diff --git a/app/views/administrateurs/attestation_templates/edit.html.haml b/app/views/administrateurs/attestation_templates/edit.html.haml index 1338f9bdf..51369375e 100644 --- a/app/views/administrateurs/attestation_templates/edit.html.haml +++ b/app/views/administrateurs/attestation_templates/edit.html.haml @@ -2,7 +2,7 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Attestation']] } .procedure-form#attestation-template-edit diff --git a/app/views/administrateurs/dossier_submitted_messages/edit.html.haml b/app/views/administrateurs/dossier_submitted_messages/edit.html.haml index de049d086..6965fbd26 100644 --- a/app/views/administrateurs/dossier_submitted_messages/edit.html.haml +++ b/app/views/administrateurs/dossier_submitted_messages/edit.html.haml @@ -2,7 +2,7 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Fin de dépot']] } .procedure-form diff --git a/app/views/administrateurs/experts_procedures/index.html.haml b/app/views/administrateurs/experts_procedures/index.html.haml index 5cbdd8bb6..a4c658504 100644 --- a/app/views/administrateurs/experts_procedures/index.html.haml +++ b/app/views/administrateurs/experts_procedures/index.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Liste des experts']] } .container diff --git a/app/views/administrateurs/groupe_instructeurs/index.html.haml b/app/views/administrateurs/groupe_instructeurs/index.html.haml index 53e2d04fc..0570d11f7 100644 --- a/app/views/administrateurs/groupe_instructeurs/index.html.haml +++ b/app/views/administrateurs/groupe_instructeurs/index.html.haml @@ -1,12 +1,12 @@ - if @procedure.routee? = render partial: 'administrateurs/breadcrumbs', locals: { steps: [[t('.procedures'), admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], [t('.instructors_group')]] } - else = render partial: 'administrateurs/breadcrumbs', locals: { steps: [[t('.procedures'), admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Instructeurs']] } .container.groupe-instructeur diff --git a/app/views/administrateurs/groupe_instructeurs/reaffecter_dossiers.html.haml b/app/views/administrateurs/groupe_instructeurs/reaffecter_dossiers.html.haml index 8b27e7d20..930628eba 100644 --- a/app/views/administrateurs/groupe_instructeurs/reaffecter_dossiers.html.haml +++ b/app/views/administrateurs/groupe_instructeurs/reaffecter_dossiers.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Groupes d’instructeurs', admin_procedure_groupe_instructeurs_path(@procedure)], [@groupe_instructeur.label]] } diff --git a/app/views/administrateurs/groupe_instructeurs/show.html.haml b/app/views/administrateurs/groupe_instructeurs/show.html.haml index 34142dad8..e62afa1fd 100644 --- a/app/views/administrateurs/groupe_instructeurs/show.html.haml +++ b/app/views/administrateurs/groupe_instructeurs/show.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Groupes d’instructeurs', admin_procedure_groupe_instructeurs_path(@procedure)], [@groupe_instructeur.label]] } diff --git a/app/views/administrateurs/jeton_particulier/api_particulier.html.haml b/app/views/administrateurs/jeton_particulier/api_particulier.html.haml index 603ce44d6..17929aaa1 100644 --- a/app/views/administrateurs/jeton_particulier/api_particulier.html.haml +++ b/app/views/administrateurs/jeton_particulier/api_particulier.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], [Procedure.human_attribute_name(:jeton_api_particulier)]] } .container diff --git a/app/views/administrateurs/jeton_particulier/show.html.haml b/app/views/administrateurs/jeton_particulier/show.html.haml index 2ffa87791..f8442cf99 100644 --- a/app/views/administrateurs/jeton_particulier/show.html.haml +++ b/app/views/administrateurs/jeton_particulier/show.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], [Procedure.human_attribute_name(:jeton_api_particulier), admin_procedure_api_particulier_path(@procedure)], ['Jeton']] } diff --git a/app/views/administrateurs/mail_templates/edit.html.haml b/app/views/administrateurs/mail_templates/edit.html.haml index 31636603c..38d0663bc 100644 --- a/app/views/administrateurs/mail_templates/edit.html.haml +++ b/app/views/administrateurs/mail_templates/edit.html.haml @@ -4,7 +4,7 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ["Emails", admin_procedure_mail_templates_path(@procedure)], [@mail_template.class.const_get(:DISPLAYED_NAME)]] } diff --git a/app/views/administrateurs/mail_templates/index.html.haml b/app/views/administrateurs/mail_templates/index.html.haml index cbf60d84b..fa3095faf 100644 --- a/app/views/administrateurs/mail_templates/index.html.haml +++ b/app/views/administrateurs/mail_templates/index.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - ["#{@procedure.libelle.truncate_words(4)}", admin_procedure_path(@procedure)], + ["#{@procedure.libelle.truncate_words(10)}", admin_procedure_path(@procedure)], ["Configuration des emails"]] } .container diff --git a/app/views/administrateurs/procedure_administrateurs/index.html.haml b/app/views/administrateurs/procedure_administrateurs/index.html.haml index 6b35f5464..bc4c87ffc 100644 --- a/app/views/administrateurs/procedure_administrateurs/index.html.haml +++ b/app/views/administrateurs/procedure_administrateurs/index.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Administrateurs']], preview: false } .container diff --git a/app/views/administrateurs/procedures/annotations.html.haml b/app/views/administrateurs/procedures/annotations.html.haml index 7ccfe66ba..1027ad34f 100644 --- a/app/views/administrateurs/procedures/annotations.html.haml +++ b/app/views/administrateurs/procedures/annotations.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Configuration des annotations privées']], preview: true } .container diff --git a/app/views/administrateurs/procedures/champs.html.haml b/app/views/administrateurs/procedures/champs.html.haml index 89c8210ac..20dfb5dab 100644 --- a/app/views/administrateurs/procedures/champs.html.haml +++ b/app/views/administrateurs/procedures/champs.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Configuration des champs']], preview: @procedure.draft_revision.valid? } .container diff --git a/app/views/administrateurs/procedures/close.html.haml b/app/views/administrateurs/procedures/close.html.haml index 812ed11bc..57a608611 100644 --- a/app/views/administrateurs/procedures/close.html.haml +++ b/app/views/administrateurs/procedures/close.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - ["#{@procedure.libelle.truncate_words(4)} - archiver"]], + ["#{@procedure.libelle.truncate_words(10)} - archiver"]], metadatas: true } .container diff --git a/app/views/administrateurs/procedures/edit.html.haml b/app/views/administrateurs/procedures/edit.html.haml index b853bc8c1..b39d688e4 100644 --- a/app/views/administrateurs/procedures/edit.html.haml +++ b/app/views/administrateurs/procedures/edit.html.haml @@ -2,7 +2,7 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Description']] } .procedure-form .procedure-form__columns.container diff --git a/app/views/administrateurs/procedures/jeton.html.haml b/app/views/administrateurs/procedures/jeton.html.haml index b6e16511e..3e5bde7ee 100644 --- a/app/views/administrateurs/procedures/jeton.html.haml +++ b/app/views/administrateurs/procedures/jeton.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Jeton']] } .container diff --git a/app/views/administrateurs/procedures/modifications.html.haml b/app/views/administrateurs/procedures/modifications.html.haml index 8c29b0f51..744be1b1a 100644 --- a/app/views/administrateurs/procedures/modifications.html.haml +++ b/app/views/administrateurs/procedures/modifications.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Modifications']] } .container %h1.page-title diff --git a/app/views/administrateurs/procedures/monavis.html.haml b/app/views/administrateurs/procedures/monavis.html.haml index 71fcc8183..894a57f9c 100644 --- a/app/views/administrateurs/procedures/monavis.html.haml +++ b/app/views/administrateurs/procedures/monavis.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['MonAvis']] } .container diff --git a/app/views/administrateurs/procedures/publication.html.haml b/app/views/administrateurs/procedures/publication.html.haml index ff232b00c..b9601f594 100644 --- a/app/views/administrateurs/procedures/publication.html.haml +++ b/app/views/administrateurs/procedures/publication.html.haml @@ -1,7 +1,7 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Publication']] } .container - if @procedure.draft_types_de_champ.dubious.present? diff --git a/app/views/administrateurs/procedures/show.html.haml b/app/views/administrateurs/procedures/show.html.haml index 8ca974503..db992ddcb 100644 --- a/app/views/administrateurs/procedures/show.html.haml +++ b/app/views/administrateurs/procedures/show.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - ["#{@procedure.libelle.truncate_words(4)}"]], + ["#{@procedure.libelle.truncate_words(10)}"]], metadatas: true } .container.procedure-admin-container diff --git a/app/views/administrateurs/procedures/transfert.html.haml b/app/views/administrateurs/procedures/transfert.html.haml index 7d01ade73..8be1b1f8c 100644 --- a/app/views/administrateurs/procedures/transfert.html.haml +++ b/app/views/administrateurs/procedures/transfert.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Transfert']] } .container = render partial: 'procedure_transfert' diff --git a/app/views/administrateurs/services/edit.html.haml b/app/views/administrateurs/services/edit.html.haml index 41cf65f34..271c7c810 100644 --- a/app/views/administrateurs/services/edit.html.haml +++ b/app/views/administrateurs/services/edit.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Choix du service', admin_services_path(procedure_id: @procedure.id)], ['Modifier le service']] } diff --git a/app/views/administrateurs/services/index.html.haml b/app/views/administrateurs/services/index.html.haml index 5b3e49802..b0fb75517 100644 --- a/app/views/administrateurs/services/index.html.haml +++ b/app/views/administrateurs/services/index.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Choix du service']] } #services-index.container diff --git a/app/views/administrateurs/services/new.html.haml b/app/views/administrateurs/services/new.html.haml index 991f709bc..691b864e7 100644 --- a/app/views/administrateurs/services/new.html.haml +++ b/app/views/administrateurs/services/new.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Choix du service', admin_services_path(procedure_id: @procedure.id)], ['Nouveau service']] } diff --git a/app/views/administrateurs/sources_particulier/show.html.haml b/app/views/administrateurs/sources_particulier/show.html.haml index 2a7d78e75..8a725096c 100644 --- a/app/views/administrateurs/sources_particulier/show.html.haml +++ b/app/views/administrateurs/sources_particulier/show.html.haml @@ -1,6 +1,6 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], [Procedure.human_attribute_name(:jeton_api_particulier), admin_procedure_api_particulier_path(@procedure)], [t('.data_sources')]] } diff --git a/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml b/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml index 5c02de136..012426dde 100644 --- a/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml +++ b/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml @@ -1,6 +1,6 @@ = turbo_stream.replace 'breadcrumbs' , render(partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], ['Configuration des champs']], preview: @procedure.draft_revision.valid? }) diff --git a/app/views/instructeurs/archives/index.html.haml b/app/views/instructeurs/archives/index.html.haml index 669aa4de1..d6cc4a63b 100644 --- a/app/views/instructeurs/archives/index.html.haml +++ b/app/views/instructeurs/archives/index.html.haml @@ -1,7 +1,7 @@ - content_for(:title, "Archives pour #{@procedure.libelle}") = render partial: 'administrateurs/breadcrumbs', - locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)], + locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)], ['Archives']] } .container diff --git a/app/views/instructeurs/groupe_instructeurs/index.html.haml b/app/views/instructeurs/groupe_instructeurs/index.html.haml index e5e931f2e..6f4a28f12 100644 --- a/app/views/instructeurs/groupe_instructeurs/index.html.haml +++ b/app/views/instructeurs/groupe_instructeurs/index.html.haml @@ -1,7 +1,7 @@ - content_for(:title, "Notifications pour #{@procedure.libelle}") = render partial: 'administrateurs/breadcrumbs', - locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)], + locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)], ['Groupes d’instructeurs']] } .container.groupe-instructeur diff --git a/app/views/instructeurs/groupe_instructeurs/show.html.haml b/app/views/instructeurs/groupe_instructeurs/show.html.haml index 8c4213ee5..ce16c307d 100644 --- a/app/views/instructeurs/groupe_instructeurs/show.html.haml +++ b/app/views/instructeurs/groupe_instructeurs/show.html.haml @@ -2,7 +2,7 @@ - content_for(:title, "Instructeurs du groupe #{@groupe_instructeur.label}") = render partial: 'administrateurs/breadcrumbs', - locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)], + locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)], ['Groupes d’instructeurs', instructeur_groupes_path(@procedure)], [@groupe_instructeur.label]] } diff --git a/app/views/instructeurs/procedures/email_notifications.html.haml b/app/views/instructeurs/procedures/email_notifications.html.haml index 8b04c7689..2a1f9fa39 100644 --- a/app/views/instructeurs/procedures/email_notifications.html.haml +++ b/app/views/instructeurs/procedures/email_notifications.html.haml @@ -1,7 +1,7 @@ - content_for(:title, "Notifications pour #{@procedure.libelle}") = render partial: 'administrateurs/breadcrumbs', - locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)], + locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)], ['Notifications']] } .container diff --git a/app/views/instructeurs/procedures/email_usagers.html.haml b/app/views/instructeurs/procedures/email_usagers.html.haml index a7745e20e..e1c965045 100644 --- a/app/views/instructeurs/procedures/email_usagers.html.haml +++ b/app/views/instructeurs/procedures/email_usagers.html.haml @@ -1,7 +1,7 @@ - content_for(:title, "Contacter les usagers pour #{@procedure.libelle}") = render partial: 'administrateurs/breadcrumbs', - locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)], + locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)], [t('.contact_users')]] } .messagerie.container - if @email_usagers_dossiers.present? diff --git a/app/views/instructeurs/procedures/stats.html.haml b/app/views/instructeurs/procedures/stats.html.haml index 5695e8873..b1f2648fe 100644 --- a/app/views/instructeurs/procedures/stats.html.haml +++ b/app/views/instructeurs/procedures/stats.html.haml @@ -2,7 +2,7 @@ - content_for(:title, title) = render partial: 'administrateurs/breadcrumbs', - locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)], + locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)], [t('.title')]] } = render partial: 'shared/procedures/stats', locals: { title: title }