Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
fb782476
Commit
fb782476
authored
Jan 20, 2014
by
Bruno Albuquerque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change web_url_without scheme to web_url_without_protocol.
parent
b75401d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/project.rb
app/models/project.rb
+1
-1
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-1
No files found.
app/models/project.rb
View file @
fb782476
...
...
@@ -201,7 +201,7 @@ class Project < ActiveRecord::Base
[
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 @
fb782476
...
...
@@ -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
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