Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
00015ac83d7b
Commit
00015ac8
authored
Jan 20, 2014
by
Bruno Albuquerque
Browse files
Change web_url_without scheme to web_url_without_protocol.
parent
9c174a3c24e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
00015ac8
...
...
@@ -201,7 +201,7 @@
[
Gitlab
.
config
.
gitlab
.
url
,
path_with_namespace
].
join
(
"/"
)
end
def
web_url_without_
scheme
def
web_url_without_
protocol
web_url
.
split
(
"://"
)[
1
]
end
...
...
app/views/layouts/_head.html.haml
View file @
00015ac8
...
...
@@ -23,5 +23,5 @@
-# Go repository retrieval support.
-
if
controller_name
==
'projects'
&&
action_name
==
'show'
%meta
{
name:
"go-import"
,
content:
"#{@project.web_url_without_
scheme
} git #{@project.web_url}.git"
}
%meta
{
name:
"go-import"
,
content:
"#{@project.web_url_without_
protocol
} git #{@project.web_url}.git"
}
Write
Preview
Supports
Markdown
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