BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bce962a8
Commit
bce962a8
authored
Mar 20, 2018
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-twitter-helper' into 'master'
Remove `www.` from `twitter_url` helper See merge request gitlab-org/gitlab-ce!17872
parents
5f675418
e118487c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
application_helper.rb
app/helpers/application_helper.rb
+3
-3
No files found.
app/helpers/application_helper.rb
View file @
bce962a8
...
...
@@ -300,7 +300,7 @@ module ApplicationHelper
def
linkedin_url
(
user
)
name
=
user
.
linkedin
if
name
=~
%r{
\A
https?:
\/\/
(www
\.
)?linkedin
\.
com
\/
in
\
/
}
if
name
=~
%r{
\A
https?:
//(www
\.
)?linkedin
\.
com/in
/}
name
else
"https://www.linkedin.com/in/
#{
name
}
"
...
...
@@ -309,10 +309,10 @@ module ApplicationHelper
def
twitter_url
(
user
)
name
=
user
.
twitter
if
name
=~
%r{
\A
https?:
\/\/
(www
\.
)?twitter
\.
com
\
/
}
if
name
=~
%r{
\A
https?:
//(www
\.
)?twitter
\.
com
/}
name
else
"https://
www.
twitter.com/
#{
name
}
"
"https://twitter.com/
#{
name
}
"
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment