From 34aeb2350c6ea495c8638ab2651357d33411ed08 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Fri, 31 Dec 2021 19:23:32 +0100 Subject: [PATCH] views: add rel=nofollow to some links --- app/views/shared/_locales.haml | 2 +- app/views/user/_profile.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_locales.haml b/app/views/shared/_locales.haml index f1d8f1ff..302f9c08 100644 --- a/app/views/shared/_locales.haml +++ b/app/views/shared/_locales.haml @@ -9,4 +9,4 @@ - APP_LOCALES.each do |key, value| %li .flag{ class: "flag-#{value[1]}" } - %a{ href: "?hl=#{key}" }= value[0] + %a{ href: "?hl=#{key}", rel: 'nofollow' }= value[0] diff --git a/app/views/user/_profile.haml b/app/views/user/_profile.haml index a64d828d..db966b8b 100644 --- a/app/views/user/_profile.haml +++ b/app/views/user/_profile.haml @@ -30,7 +30,7 @@ - unless user.profile.website.blank? .profile__website %i.fa.fa-fw.fa-globe - %a{ href: user.profile.website, target: '_blank' }= user.profile.display_website + %a{ href: user.profile.website, target: '_blank', rel: 'nofollow' }= user.profile.display_website - unless user.profile.location.blank? .profile__location %i.fa.fa-fw.fa-location-arrow