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
f557686e
Commit
f557686e
authored
12 years ago
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git clone panel available on files tab too
parent
8ca0b75d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
13 deletions
+30
-13
app/assets/javascripts/projects.js
app/assets/javascripts/projects.js
+9
-0
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
+1
-1
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/sections/projects.scss
+8
-4
app/views/projects/_clone_panel.html.haml
app/views/projects/_clone_panel.html.haml
+2
-2
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-6
app/views/refs/_head.html.haml
app/views/refs/_head.html.haml
+9
-0
No files found.
app/assets/javascripts/projects.js
View file @
f557686e
...
...
@@ -14,3 +14,12 @@ function Projects() {
disableButtonIfEmtpyField
(
"
#project_name
"
,
"
.project-submit
"
)
}
function
initGitCloneSwitcher
()
{
var
link_sel
=
"
.project_clone_holder button
"
;
$
(
link_sel
).
bind
(
"
click
"
,
function
(
e
)
{
$
(
link_sel
).
removeClass
(
"
active
"
);
$
(
this
).
addClass
(
"
active
"
);
$
(
"
#project_clone
"
).
val
(
$
(
this
).
attr
(
"
data-clone
"
));
})
}
This diff is collapsed.
Click to expand it.
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
View file @
f557686e
This diff is collapsed.
Click to expand it.
app/assets/stylesheets/sections/projects.scss
View file @
f557686e
...
...
@@ -75,8 +75,12 @@
padding
:
4px
7px
;
border
:
1px
solid
#CCC
;
margin-bottom
:
5px
;
input
[
type
=
text
]
{
}
.project_clone_holder
{
input
[
type
=
"text"
]
{
border
:
1px
solid
#BBB
;
box-shadow
:
none
;
}
}
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/_clone_panel.html.haml
View file @
f557686e
...
...
@@ -3,8 +3,8 @@
.span7
.form-horizontal
.input-prepend.project_clone_holder
=
link_to
"SSH"
,
"#"
,
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
=
link_to
"HTTP"
,
"#"
,
class:
"btn small"
,
:"data-clone"
=>
@project
.
http_url_to_repo
%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"
.span4.right
.right
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/show.html.haml
View file @
f557686e
...
...
@@ -5,10 +5,5 @@
:javascript
$
(
function
(){
var
link_sel
=
"
.project_clone_holder a
"
;
$
(
link_sel
).
bind
(
"
click
"
,
function
()
{
$
(
link_sel
).
removeClass
(
"
active
"
);
$
(
this
).
addClass
(
"
active
"
);
$
(
"
#project_clone
"
).
val
(
$
(
this
).
attr
(
"
data-clone
"
));
})
initGitCloneSwitcher
();
})
This diff is collapsed.
Click to expand it.
app/views/refs/_head.html.haml
View file @
f557686e
...
...
@@ -7,4 +7,13 @@
%li
{
class:
"#{'active' if (controller.controller_name == "
refs
") }"
}
=
link_to
tree_project_ref_path
(
@project
,
@ref
)
do
Source
%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"
:javascript
$
(
function
(){
initGitCloneSwitcher
();
})
This diff is collapsed.
Click to expand it.
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