fix(breadcrumb): extends breadcrumb libelle truncation from 4 to 10 words

This commit is contained in:
Martin 2022-09-09 13:08:24 +02:00
parent 062477dede
commit f08d4e9dc0
33 changed files with 34 additions and 34 deletions

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Export et Archives']] }

View file

@ -2,7 +2,7 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Attestation']] }
.procedure-form#attestation-template-edit .procedure-form#attestation-template-edit

View file

@ -2,7 +2,7 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Fin de dépot']] }
.procedure-form .procedure-form

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Liste des experts']] }
.container .container

View file

@ -1,12 +1,12 @@
- if @procedure.routee? - if @procedure.routee?
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [[t('.procedures'), admin_procedures_path], 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')]] } [t('.instructors_group')]] }
- else - else
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [[t('.procedures'), admin_procedures_path], 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']] } ['Instructeurs']] }
.container.groupe-instructeur .container.groupe-instructeur

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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 dinstructeurs', admin_procedure_groupe_instructeurs_path(@procedure)], ['Groupes dinstructeurs', admin_procedure_groupe_instructeurs_path(@procedure)],
[@groupe_instructeur.label]] } [@groupe_instructeur.label]] }

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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 dinstructeurs', admin_procedure_groupe_instructeurs_path(@procedure)], ['Groupes dinstructeurs', admin_procedure_groupe_instructeurs_path(@procedure)],
[@groupe_instructeur.label]] } [@groupe_instructeur.label]] }

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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)]] } [Procedure.human_attribute_name(:jeton_api_particulier)]] }
.container .container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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)], [Procedure.human_attribute_name(:jeton_api_particulier), admin_procedure_api_particulier_path(@procedure)],
['Jeton']] } ['Jeton']] }

View file

@ -4,7 +4,7 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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)], ["Emails", admin_procedure_mail_templates_path(@procedure)],
[@mail_template.class.const_get(:DISPLAYED_NAME)]] } [@mail_template.class.const_get(:DISPLAYED_NAME)]] }

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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"]] } ["Configuration des emails"]] }
.container .container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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 } ['Administrateurs']], preview: false }
.container .container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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 } ['Configuration des annotations privées']], preview: true }
.container .container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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? } ['Configuration des champs']], preview: @procedure.draft_revision.valid? }
.container .container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], locals: { steps: [['Démarches', admin_procedures_path],
["#{@procedure.libelle.truncate_words(4)} - archiver"]], ["#{@procedure.libelle.truncate_words(10)} - archiver"]],
metadatas: true } metadatas: true }
.container .container

View file

@ -2,7 +2,7 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Description']] }
.procedure-form .procedure-form
.procedure-form__columns.container .procedure-form__columns.container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Jeton']] }
.container .container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Modifications']] }
.container .container
%h1.page-title %h1.page-title

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['MonAvis']] }
.container .container

View file

@ -1,7 +1,7 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Publication']] }
.container .container
- if @procedure.draft_types_de_champ.dubious.present? - if @procedure.draft_types_de_champ.dubious.present?

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], locals: { steps: [['Démarches', admin_procedures_path],
["#{@procedure.libelle.truncate_words(4)}"]], ["#{@procedure.libelle.truncate_words(10)}"]],
metadatas: true } metadatas: true }
.container.procedure-admin-container .container.procedure-admin-container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Transfert']] }
.container .container
= render partial: 'procedure_transfert' = render partial: 'procedure_transfert'

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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)], ['Choix du service', admin_services_path(procedure_id: @procedure.id)],
['Modifier le service']] } ['Modifier le service']] }

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']] } ['Choix du service']] }
#services-index.container #services-index.container

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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)], ['Choix du service', admin_services_path(procedure_id: @procedure.id)],
['Nouveau service']] } ['Nouveau service']] }

View file

@ -1,6 +1,6 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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)], [Procedure.human_attribute_name(:jeton_api_particulier), admin_procedure_api_particulier_path(@procedure)],
[t('.data_sources')]] } [t('.data_sources')]] }

View file

@ -1,6 +1,6 @@
= turbo_stream.replace 'breadcrumbs' , render(partial: 'administrateurs/breadcrumbs', = turbo_stream.replace 'breadcrumbs' , render(partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path], 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']], ['Configuration des champs']],
preview: @procedure.draft_revision.valid? }) preview: @procedure.draft_revision.valid? })

View file

@ -1,7 +1,7 @@
- content_for(:title, "Archives pour #{@procedure.libelle}") - content_for(:title, "Archives pour #{@procedure.libelle}")
= render partial: 'administrateurs/breadcrumbs', = 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']] } ['Archives']] }
.container .container

View file

@ -1,7 +1,7 @@
- content_for(:title, "Notifications pour #{@procedure.libelle}") - content_for(:title, "Notifications pour #{@procedure.libelle}")
= render partial: 'administrateurs/breadcrumbs', = 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 dinstructeurs']] } ['Groupes dinstructeurs']] }
.container.groupe-instructeur .container.groupe-instructeur

View file

@ -2,7 +2,7 @@
- content_for(:title, "Instructeurs du groupe #{@groupe_instructeur.label}") - content_for(:title, "Instructeurs du groupe #{@groupe_instructeur.label}")
= render partial: 'administrateurs/breadcrumbs', = 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 dinstructeurs', instructeur_groupes_path(@procedure)], ['Groupes dinstructeurs', instructeur_groupes_path(@procedure)],
[@groupe_instructeur.label]] } [@groupe_instructeur.label]] }

View file

@ -1,7 +1,7 @@
- content_for(:title, "Notifications pour #{@procedure.libelle}") - content_for(:title, "Notifications pour #{@procedure.libelle}")
= render partial: 'administrateurs/breadcrumbs', = 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']] } ['Notifications']] }
.container .container

View file

@ -1,7 +1,7 @@
- content_for(:title, "Contacter les usagers pour #{@procedure.libelle}") - content_for(:title, "Contacter les usagers pour #{@procedure.libelle}")
= render partial: 'administrateurs/breadcrumbs', = 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')]] } [t('.contact_users')]] }
.messagerie.container .messagerie.container
- if @email_usagers_dossiers.present? - if @email_usagers_dossiers.present?

View file

@ -2,7 +2,7 @@
- content_for(:title, title) - content_for(:title, title)
= render partial: 'administrateurs/breadcrumbs', = 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')]] } [t('.title')]] }
= render partial: 'shared/procedures/stats', locals: { title: title } = render partial: 'shared/procedures/stats', locals: { title: title }