From 7be8d4447ffecb38a94e52956bc9f5c5528950d7 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Mon, 13 Nov 2023 11:32:19 +0100 Subject: [PATCH] add links to deployment map --- app/views/root/_footer.html.haml | 2 ++ app/views/stats/index.html.haml | 4 ++++ config/locales/links.en.yml | 3 +++ config/locales/links.fr.yml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/app/views/root/_footer.html.haml b/app/views/root/_footer.html.haml index 6670a1323..30817887e 100644 --- a/app/views/root/_footer.html.haml +++ b/app/views/root/_footer.html.haml @@ -18,6 +18,8 @@ = link_to t("links.footer.suivi.label"), suivi_path, title: t("links.footer.suivi.title"), class: "fr-footer__top-link" %li.fr-footer__top-link = link_to t("links.footer.stats.label"), stats_path, title: t("links.footer.stats.title"), class: "fr-footer__top-link" + %li.fr-footer__top_link + = link_to t("links.footer.carte.label"), carte_path, title: t("links.footer.carte.title"), class: "fr-footer__top-link" %li.fr-footer__top-link = link_to t("links.footer.cgu.label"), t("links.footer.cgu.url"), title: t("links.footer.cgu.title"), class: "fr-footer__top-link", rel: "noopener noreferrer" .fr-col-12.fr-col-sm-3.fr-col-md-3 diff --git a/app/views/stats/index.html.haml b/app/views/stats/index.html.haml index e3f54b980..d1712f63a 100644 --- a/app/views/stats/index.html.haml +++ b/app/views/stats/index.html.haml @@ -12,6 +12,8 @@ = number_with_delimiter(@procedures_numbers[:total]) %span.big-number-card-detail #{number_with_delimiter(@procedures_numbers[:last_30_days_count])} (#{@procedures_numbers[:evolution]} %) sur les 30 derniers jours + %span.big-number-card-detail + = link_to "Voir carte de déploiement", carte_path .stat-card.stat-card-half.big-number-card.pull-left %span.big-number-card-title TOTAL DOSSIERS DÉPOSÉS @@ -19,6 +21,8 @@ = number_with_delimiter(@dossiers_numbers[:total]) %span.big-number-card-detail #{number_with_delimiter(@dossiers_numbers[:last_30_days_count])} (#{@dossiers_numbers[:evolution]} %) sur les 30 derniers jours + %span.big-number-card-detail + = link_to "Voir carte de déploiement", carte_path(map_filter: { kind: :nb_dossiers }) .stat-card.stat-card-half.pull-left diff --git a/config/locales/links.en.yml b/config/locales/links.en.yml index a1aeddd58..9119401d6 100644 --- a/config/locales/links.en.yml +++ b/config/locales/links.en.yml @@ -61,6 +61,9 @@ en: label: "Security" title: "Security policy" url: "https://github.com/betagouv/demarches-simplifiees.fr/blob/main/SECURITY.md" + carte: + label: "Deployment map" + title: "Deployment map by department" status_page: label: "Disponibility" title: "Disponibility and availability" diff --git a/config/locales/links.fr.yml b/config/locales/links.fr.yml index b9abf2635..5a813d1ee 100644 --- a/config/locales/links.fr.yml +++ b/config/locales/links.fr.yml @@ -69,6 +69,9 @@ fr: stats: label: "Statistiques" title: "Statistiques d’usage" + carte: + label: "Carte de déploiement" + title: "Carte de déploiement par département" status_page: label: "Disponibilité" title: "Disponibilité du site demarches-simplifiees"