summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tim@tpmgames.com>2017-04-26 07:55:46 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-05-08 11:57:03 +0200
commit7e7a896d9c6509fabd1fea09a835b5d7a86dcf9a (patch)
tree751b36e4b9353abcf7f0ecbb59216ebae0f3c8e9
parent62b0eb2c0ba02d2a9c9515722dfcb7ec61b7fc6a (diff)
downloadgitlab-ce-7e7a896d9c6509fabd1fea09a835b5d7a86dcf9a.tar.gz
Replacing Base URL's if they have been entered into the profile
-rw-r--r--app/views/users/show.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index 03e5dd97405..075f78bca23 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -56,11 +56,11 @@
= icon('skype')
- unless @user.linkedin.blank?
.profile-link-holder.middle-dot-divider
- = link_to "https://www.linkedin.com/in/#{@user.linkedin}", title: "LinkedIn" do
+ = link_to "https://www.linkedin.com/in/#{@user.linkedin.gsub(/https:\/\/www.linkedin.com\/in\//i,"")}", title: "LinkedIn" do
= icon('linkedin-square')
- unless @user.twitter.blank?
.profile-link-holder.middle-dot-divider
- = link_to "https://twitter.com/#{@user.twitter}", title: "Twitter" do
+ = link_to "https://twitter.com/#{@user.twitter.gsub(/https:\/\/twitter.com\//i,"")}", title: "Twitter" do
= icon('twitter-square')
- unless @user.website_url.blank?
.profile-link-holder.middle-dot-divider