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
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
project.rb
app/models/project.rb
+1
-1
_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