Adds title on links with target blank
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
<ul>
|
||||
<% if setting['twitter_handle'] %>
|
||||
<li class="inline-block">
|
||||
<%= link_to "https://twitter.com/#{setting['twitter_handle']}", target: "_blank", title: t("social.twitter") do %>
|
||||
<%= link_to "https://twitter.com/#{setting['twitter_handle']}", target: "_blank", title: t("social.twitter") + t('shared.target_blank_html') do %>
|
||||
<span class="sr-only"><%= t("social.twitter") %></span>
|
||||
<span class="icon-twitter" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
@@ -63,7 +63,7 @@
|
||||
<% end %>
|
||||
<% if setting['facebook_handle'] %>
|
||||
<li class="inline-block">
|
||||
<%= link_to "https://www.facebook.com/#{setting['facebook_handle']}/", target: "_blank", title: t("social.facebook") do %>
|
||||
<%= link_to "https://www.facebook.com/#{setting['facebook_handle']}/", target: "_blank", title: t("social.facebook") + t('shared.target_blank_html') do %>
|
||||
<span class="sr-only"><%= t("social.facebook") %></span>
|
||||
<span class="icon-facebook" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
@@ -71,7 +71,7 @@
|
||||
<% end %>
|
||||
<% if setting['blog_url'] %>
|
||||
<li class="inline-block">
|
||||
<%= link_to setting['blog_url'], target: "_blank", title: t("social.blog") do %>
|
||||
<%= link_to setting['blog_url'], target: "_blank", title: t("social.blog") + t('shared.target_blank_html') do %>
|
||||
<span class="sr-only"><%= t("social.blog") %></span>
|
||||
<span class="icon-blog" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
@@ -79,7 +79,7 @@
|
||||
<% end %>
|
||||
<% if setting['youtube_handle'] %>
|
||||
<li class="inline-block">
|
||||
<%= link_to "https://www.youtube.com/#{setting['youtube_handle']}", target: "_blank", title: t("social.youtube") do %>
|
||||
<%= link_to "https://www.youtube.com/#{setting['youtube_handle']}", target: "_blank", title: t("social.youtube") + t('shared.target_blank_html') do %>
|
||||
<span class="sr-only"><%= t("social.youtube") %></span>
|
||||
<span class="icon-youtube" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user