diff --git a/app/views/users/_general_footer_row.html.haml b/app/views/users/_general_footer_row.html.haml index 5d63143cf..e1fe2d44f 100644 --- a/app/views/users/_general_footer_row.html.haml +++ b/app/views/users/_general_footer_row.html.haml @@ -1,4 +1,12 @@ +- nav_bar_profile = controller.try(:nav_bar_profile) || :guest +- is_agent = [:user, :guest].exclude?(nav_bar_profile) + %ul.fr-footer__bottom-list + - if is_agent + %li.fr-footer__bottom-item + = link_to t("links.footer.doc.label"), DOC_URL, title: t("links.footer.doc.title"), class: "fr-footer__bottom-link", target: "_blank", rel: "noopener noreferrer" + %li.fr-footer__bottom-item + = link_to t("links.footer.vote_feature.label"), FEATURE_UPVOTE_URL, title: t("links.footer.vote_feature.title"), class: "fr-footer__bottom-link", target: "_blank", rel: "noopener noreferrer" %li.fr-footer__bottom-item = link_to t("links.footer.accessibilite.label"), ACCESSIBILITE_URL, title: t("links.footer.accessibilite.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer" %li.fr-footer__bottom-item diff --git a/config/locales/links.en.yml b/config/locales/links.en.yml index 75799c6f1..bfa58d273 100644 --- a/config/locales/links.en.yml +++ b/config/locales/links.en.yml @@ -50,6 +50,9 @@ en: label: "Documentation" title: "Our Documentation" url: "https://doc.demarches-simplifiees.fr" + vote_feature: + label: "Improve the site" + title: "Vote for your priority improvements or share your own ideas" mentions_legales: label: "Legal notices" title: "Legal notices regarding our platform" diff --git a/config/locales/links.fr.yml b/config/locales/links.fr.yml index b8070494b..13375db43 100644 --- a/config/locales/links.fr.yml +++ b/config/locales/links.fr.yml @@ -55,6 +55,9 @@ fr: label: "Documentation" title: "Documentation utilisateur" url: "https://doc.demarches-simplifiees.fr" + vote_feature: + label: "Améliorer le site" + title: "Votez pour vos améliorations prioritaires ou proposez votre propre idée" mentions_legales: label: "Mentions légales" title: "Consulter nos Mentions légales"