[Fix #1591] Add rel attribute to target blank links

This commit is contained in:
gregoirenovel 2018-03-13 11:24:12 +01:00
parent c768f74bb7
commit 53ad9d3611
3 changed files with 20 additions and 17 deletions

View file

@ -13,7 +13,7 @@ class RootController < ApplicationController
end end
if Date.today < Date.new(2018, 03, 31) if Date.today < Date.new(2018, 03, 31)
flash.now.notice = ["Téléprocédures Simplifiées change de nom et devient demarches-simplifiees.fr, <a href='https://demarches-simplifiees.gitbooks.io/demarches-simplifiees/content/changement-de-nom.html' target='_blank'>en savoir plus</a>."] flash.now.notice = ["Téléprocédures Simplifiées change de nom et devient demarches-simplifiees.fr, <a href='https://demarches-simplifiees.gitbooks.io/demarches-simplifiees/content/changement-de-nom.html' target='_blank' rel='noopener noreferrer'>en savoir plus</a>."]
end end
render 'landing' render 'landing'

View file

@ -22,9 +22,9 @@
%li.footer-link %li.footer-link
= link_to "Statistiques", stats_path, :class => "footer-link" = link_to "Statistiques", stats_path, :class => "footer-link"
%li.footer-link %li.footer-link
= link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank" = link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
%li.footer-link %li.footer-link
= link_to "Mentions légales", "https://demarches-simplifiees.gitbooks.io/demarches-simplifiees/content/conditions-generales-dutilisation.html#4-mentions-l%C3%A9gales", :class => "footer-link", :target => "_blank" = link_to "Mentions légales", "https://demarches-simplifiees.gitbooks.io/demarches-simplifiees/content/conditions-generales-dutilisation.html#4-mentions-l%C3%A9gales", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
%li.footer-column %li.footer-column
%ul.footer-links %ul.footer-links
@ -33,10 +33,10 @@
"mailto:#{t('dynamics.contact_email')}", "mailto:#{t('dynamics.contact_email')}",
:class => "footer-link" :class => "footer-link"
%li.footer-link %li.footer-link
= link_to "Documentation", "https://demarches-simplifiees.gitbooks.io/demarches-simplifiees/content/", :class => "footer-link", :target => "_blank" = link_to "Documentation", "https://demarches-simplifiees.gitbooks.io/demarches-simplifiees/content/", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
%li.footer-link %li.footer-link
= link_to "Documentation de l'API", "/docs", :class => "footer-link", :target => "_blank" = link_to "Documentation de l'API", "/docs", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
%li.footer-link %li.footer-link
= link_to "FAQ", "http://demarches-simplifiees.helpscoutdocs.com/", :class => "footer-link", :target => "_blank" = link_to "FAQ", "http://demarches-simplifiees.helpscoutdocs.com/", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
%li.footer-link %li.footer-link
= link_to "Accessibilité", accessibilite_index_path, :class => "footer-link" = link_to "Accessibilité", accessibilite_index_path, :class => "footer-link"

View file

@ -50,11 +50,13 @@
"mailto:#{t("dynamics.contact_email")}?subject=Demande%20de%20compte%20administrateur%20demarches-simplifiees.fr", "mailto:#{t("dynamics.contact_email")}?subject=Demande%20de%20compte%20administrateur%20demarches-simplifiees.fr",
class: "role-panel-button-primary", class: "role-panel-button-primary",
target: "_blank", target: "_blank",
rel: "noopener noreferrer",
onclick: "javascript: ga('send', 'pageview', '/demander-une-demo')" onclick: "javascript: ga('send', 'pageview', '/demander-une-demo')"
= link_to "Voir la documentation", = link_to "Voir la documentation",
"https://demarches-simplifiees.gitbooks.io/demarches-simplifiees/content/", "https://demarches-simplifiees.gitbooks.io/demarches-simplifiees/content/",
target: "_blank", target: "_blank",
rel: "noopener noreferrer",
class: "role-panel-button-secondary" class: "role-panel-button-secondary"
.landing-panel.admins-panel .landing-panel.admins-panel
@ -156,36 +158,36 @@
%ul.users %ul.users
%li.user %li.user
= link_to "https://www.ecologique-solidaire.gouv.fr/", target: :blank do = link_to "https://www.ecologique-solidaire.gouv.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/mtes.jpg"), alt: "Ministère de la Transition Écologique et Solidaire" } %img.user-image{ :src => image_url("landing/users/mtes.jpg"), alt: "Ministère de la Transition Écologique et Solidaire" }
%li.user %li.user
= link_to "https://www.iledefrance.fr/", target: :blank do = link_to "https://www.iledefrance.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/region-idf.jpg"), alt: "Région Île-de-France" } %img.user-image{ :src => image_url("landing/users/region-idf.jpg"), alt: "Région Île-de-France" }
%li.user %li.user
= link_to "http://www.artisanat.fr/", target: :blank do = link_to "http://www.artisanat.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/chambres-de-metiers.jpg"), alt: "Chambres des Métiers et de l'Artisanat" } %img.user-image{ :src => image_url("landing/users/chambres-de-metiers.jpg"), alt: "Chambres des Métiers et de l'Artisanat" }
%li.user %li.user
= link_to "http://www.cci.fr/", target: :blank do = link_to "http://www.cci.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/cci.jpg"), alt: "CCI de France" } %img.user-image{ :src => image_url("landing/users/cci.jpg"), alt: "CCI de France" }
%li.user %li.user
= link_to "http://www.driea.ile-de-france.developpement-durable.gouv.fr/", target: :blank do = link_to "http://www.driea.ile-de-france.developpement-durable.gouv.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/driea-idf.jpg"), alt: "Direction Régionale et Interdépartementale de l'Équipement et de l'Aménagement" } %img.user-image{ :src => image_url("landing/users/driea-idf.jpg"), alt: "Direction Régionale et Interdépartementale de l'Équipement et de l'Aménagement" }
%ul.users %ul.users
%li.user %li.user
= link_to "https://www.debatpublic.fr/", target: :blank do = link_to "https://www.debatpublic.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/cndp.jpg"), alt: "Commission Nationale du Débat Public" } %img.user-image{ :src => image_url("landing/users/cndp.jpg"), alt: "Commission Nationale du Débat Public" }
%li.user %li.user
= link_to "https://www.iledefrance.ars.sante.fr/", target: :blank do = link_to "https://www.iledefrance.ars.sante.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/ars-idf.jpg"), alt: "Agence Régionale de Santé d'Île-de-France" } %img.user-image{ :src => image_url("landing/users/ars-idf.jpg"), alt: "Agence Régionale de Santé d'Île-de-France" }
%li.user %li.user
= link_to "http://www.franceagrimer.fr/", target: :blank do = link_to "http://www.franceagrimer.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/france-agrimer.jpg"), alt: "FranceAgrimer" } %img.user-image{ :src => image_url("landing/users/france-agrimer.jpg"), alt: "FranceAgrimer" }
%li.user %li.user
= link_to "http://www.rhone.gouv.fr/", target: :blank do = link_to "http://www.rhone.gouv.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/prefecture-rhone.jpg"), alt: "Préfecture de la région Rhône-Alpes" } %img.user-image{ :src => image_url("landing/users/prefecture-rhone.jpg"), alt: "Préfecture de la région Rhône-Alpes" }
%li.user %li.user
= link_to "http://www.lillemetropole.fr/", target: :blank do = link_to "http://www.lillemetropole.fr/", target: :blank, rel: "noopener noreferrer" do
%img.user-image{ :src => image_url("landing/users/mel.jpg"), alt: "Métropole Européenne de Lille" } %img.user-image{ :src => image_url("landing/users/mel.jpg"), alt: "Métropole Européenne de Lille" }
.landing-panel.cta-panel .landing-panel.cta-panel
@ -198,4 +200,5 @@
= link_to "Contactez-nous", = link_to "Contactez-nous",
"mailto:#{t("dynamics.contact_email")}?subject=Question%20à%20propos%20de%20demarches-simplifiees.fr", "mailto:#{t("dynamics.contact_email")}?subject=Question%20à%20propos%20de%20demarches-simplifiees.fr",
class: "cta-panel-button-white", class: "cta-panel-button-white",
target: "_blank" target: "_blank",
rel: "noopener noreferrer"