Instructor - Improve titles on listing pages

This commit is contained in:
Corinne Durrmeyer 2024-05-02 14:39:23 +02:00
parent f0544d77e9
commit 2dc6e3fbc3
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
3 changed files with 5 additions and 4 deletions

View file

@ -5,9 +5,10 @@
.procedure-details
.flex.clipboard-container
%p.fr-mb-2w
.fr-mb-2w
= procedure_badge(p)
= link_to("#{p.libelle} - n°#{p.id}", instructeur_procedure_path(p), class: "fr-link fr-ml-1w")
%h3.font-weight-normal.fr-link.fr-ml-1w
= link_to("#{p.libelle} - n°#{p.id}", instructeur_procedure_path(p))
= render Dsfr::CopyButtonComponent.new(title: t('instructeurs.procedures.index.copy_link_button'), text: commencer_url(p.path))
%ul.procedure-stats.flex

View file

@ -1,6 +1,6 @@
- if procedures.length > 1
.flex.align-center.fr-mb-2w
%h2.fr-text--sm.fr-mb-1w= t('views.instructeurs.dossiers.dossier_synthesis')
%p.font-weight-bold.fr-text--sm.fr-mb-1w= t('views.instructeurs.dossiers.dossier_synthesis')
- all_dossiers_counts.each_with_index do |(label, dossier_count)|
- if dossier_count != 0
%span.fr-badge.fr-ml-1w.fr-mb-1w= number_with_html_delimiter(dossier_count) + ' ' + label

View file

@ -30,7 +30,7 @@
- if collection.present?
.fr-h6
%h2.fr-h6
= page_entries_info collection
%ul.procedure-list.fr-pl-0
= render partial: 'instructeurs/procedures/list',