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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
4e363c61
Commit
4e363c61
authored
Oct 21, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1605 from dosire/repo_clone_indicator
Rewrite build_url, use web_protocol for repo indicator.
parents
2ff36e74
d75cc7ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
app/views/blame/_head.html.haml
app/views/blame/_head.html.haml
+1
-1
app/views/projects/_clone_panel.html.haml
app/views/projects/_clone_panel.html.haml
+1
-1
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+9
-7
No files found.
app/views/blame/_head.html.haml
View file @
4e363c61
...
@@ -6,5 +6,5 @@
...
@@ -6,5 +6,5 @@
%li
.right
%li
.right
.input-prepend.project_clone_holder
.input-prepend.project_clone_holder
%button
{
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%button
{
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%button
{
class:
"btn small"
,
:"data-clone"
=>
@project
.
http_url_to_repo
}
HTTP
%button
{
class:
"btn small"
,
:"data-clone"
=>
@project
.
http_url_to_repo
}
=
Gitlab
.
config
.
web_protocol
.
upcase
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
app/views/projects/_clone_panel.html.haml
View file @
4e363c61
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
.form-horizontal
.form-horizontal
.input-prepend.project_clone_holder
.input-prepend.project_clone_holder
%button
{
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%button
{
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%button
{
class:
"btn small"
,
:"data-clone"
=>
@project
.
http_url_to_repo
}
HTTP
%button
{
class:
"btn small"
,
:"data-clone"
=>
@project
.
http_url_to_repo
}
=
Gitlab
.
config
.
web_protocol
.
upcase
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
.span4.right
.span4.right
.right
.right
...
...
config/initializers/1_settings.rb
View file @
4e363c61
...
@@ -31,15 +31,17 @@ class Settings < Settingslogic
...
@@ -31,15 +31,17 @@ class Settings < Settingslogic
end
end
def
build_url
def
build_url
raw_url
=
self
.
web_protocol
raw_url
<<
"://"
raw_url
<<
web_host
if
web_custom_port?
if
web_custom_port?
raw_url
<<
":
#{
web_port
}
"
custom_port
=
":
#{
web_port
}
"
end
else
custom_port
=
nil
raw_url
end
[
web_protocol
,
"://"
,
web_host
,
custom_port
].
join
(
''
)
end
end
def
ssh_port
def
ssh_port
...
...
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