diff --git a/app/assets/stylesheets/landing.scss b/app/assets/stylesheets/landing.scss index c0795cde8..756c3f973 100644 --- a/app/assets/stylesheets/landing.scss +++ b/app/assets/stylesheets/landing.scss @@ -152,6 +152,7 @@ $landing-breakpoint: 1040px; .number-label { max-width: 10rem; margin: auto; + padding-inline-start: 0; font-weight: 600; font-size: 1.25rem; line-height: 1.5rem; diff --git a/app/views/root/administration.html.haml b/app/views/root/administration.html.haml index c6ff2667e..2b61f744e 100644 --- a/app/views/root/administration.html.haml +++ b/app/views/root/administration.html.haml @@ -74,25 +74,25 @@ .fr-py-6w.fr-background-alt--blue-france .container %h2.center.fr-mb-4w #{Current.application_name} en chiffres - %ul.numbers - %li.number - .number-value + %dl.numbers + .number + %dt.number-value = number_with_delimiter(Administrateur.with_publiees_ou_closes.uniq.count, :locale => :fr) - .number-label< + %dd.number-label< administrations %br<> partenaires - %li.number - .number-value + .number + %dt.number-value = number_with_delimiter(Dossier.state_not_brouillon.count, :locale => :fr) - .number-label< + %dd.number-label< dossiers %br<> déposés - %li.number - .number-value + .number + %dt.number-value = "#{number_with_delimiter(50, :locale => :fr)} %" - .number-label< + %dd.number-label< de réduction %br<> des délais de traitement diff --git a/app/views/root/landing.html.haml b/app/views/root/landing.html.haml index 7d32d4689..ce79ae64b 100644 --- a/app/views/root/landing.html.haml +++ b/app/views/root/landing.html.haml @@ -30,19 +30,19 @@ .container %h2.center.fr-mb-4w= t(".our_numbers", name: Current.application_name) - cache [I18n.locale, "numbers-panel"], expires_in: 3.hours do - %ul.numbers - %li.number - .number-value + %dl.numbers + .number + %dt.number-value = number_with_delimiter(@stat&.administrations_partenaires) - .number-label= t(".numbers.administrations") - %li.number - .number-value + %dd.number-label= t(".numbers.administrations") + .number + %dt.number-value = number_with_delimiter(@stat&.dossiers_not_brouillon) - .number-label= t(".numbers.files") - %li.number - .number-value + %dd.number-label= t(".numbers.files") + .number + %dt.number-value = "#{number_with_delimiter(50)} %" - .number-label.number-label-third= t(".numbers.processing_time") + %dd.number-label.number-label-third= t(".numbers.processing_time") .fr-background-alt--blue-france.fr-py-6w .container