summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-01-25 10:12:57 +0100
committerAchilleas Pipinellis <axil@gitlab.com>2018-01-25 11:33:55 +0100
commitfd4f63c0a5e11fd79f06a13955ffd1cbd4b17ca6 (patch)
tree0207a93af9570d0a9e3492cd6f834ece4236c253
parentaff9ecefb8a2c0e3b6816a4632c8433940dd6e88 (diff)
downloadgitlab-ce-profile-link-target-blank.tar.gz
Open links in a new tab on the user pageprofile-link-target-blank
-rw-r--r--app/views/users/show.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index 4f4e81c705f..006c46a78cb 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -58,15 +58,15 @@
= icon('skype')
- unless @user.linkedin.blank?
.profile-link-holder.middle-dot-divider
- = link_to linkedin_url(@user), title: "LinkedIn" do
+ = link_to linkedin_url(@user), title: "LinkedIn", target: '_blank' do
= icon('linkedin-square')
- unless @user.twitter.blank?
.profile-link-holder.middle-dot-divider
- = link_to twitter_url(@user), title: "Twitter" do
+ = link_to twitter_url(@user), title: "Twitter", target: '_blank' do
= icon('twitter-square')
- unless @user.website_url.blank?
.profile-link-holder.middle-dot-divider
- = link_to @user.short_website_url, @user.full_website_url, class: 'text-link'
+ = link_to @user.short_website_url, @user.full_website_url, class: 'text-link', target: '_blank'
- unless @user.location.blank?
.profile-link-holder.middle-dot-divider
= icon('map-marker')