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
Léo-Paul Géneau
gitlab-ce
Commits
0447ab37
Commit
0447ab37
authored
Oct 22, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract shared/clone_panel partial
parent
ff396e0a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
13 deletions
+7
-13
app/views/blame/_head.html.haml
app/views/blame/_head.html.haml
+1
-4
app/views/projects/_clone_panel.html.haml
app/views/projects/_clone_panel.html.haml
+1
-5
app/views/shared/_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+4
-0
app/views/tree/_head.html.haml
app/views/tree/_head.html.haml
+1
-4
No files found.
app/views/blame/_head.html.haml
View file @
0447ab37
...
...
@@ -4,7 +4,4 @@
=
nav_link
(
controller: :refs
)
do
=
link_to
'Source'
,
project_tree_path
(
@project
,
@ref
)
%li
.right
.input-prepend.project_clone_holder
%button
{
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%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"
=
render
"shared/clone_panel"
app/views/projects/_clone_panel.html.haml
View file @
0447ab37
.project_clone_panel
.row
.span7
.form-horizontal
.input-prepend.project_clone_holder
%button
{
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%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"
.form-horizontal
=
render
"shared/clone_panel"
.span4.right
.right
-
unless
@project
.
empty_repo?
...
...
app/views/shared/_clone_panel.html.haml
0 → 100644
View file @
0447ab37
.input-prepend.project_clone_holder
%button
{
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%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"
app/views/tree/_head.html.haml
View file @
0447ab37
...
...
@@ -4,7 +4,4 @@
=
nav_link
(
controller: :tree
)
do
=
link_to
'Source'
,
project_tree_path
(
@project
,
@ref
)
%li
.right
.input-prepend.project_clone_holder
%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
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
=
render
"shared/clone_panel"
\ No newline at end of file
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