Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-09-03 23:30:14 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-09-03 23:30:14 +0400
commitf557686eb2d432f794addbc052331d5d8f0be400 (patch)
tree97f0e305014c363f618c9b4e58ac7319078afc1c /app/views/projects
parent8ca0b75d05b457e4335a6734582ba703404cc9c6 (diff)
git clone panel available on files tab too
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/_clone_panel.html.haml4
-rw-r--r--app/views/projects/show.html.haml7
2 files changed, 3 insertions, 8 deletions
diff --git a/app/views/projects/_clone_panel.html.haml b/app/views/projects/_clone_panel.html.haml
index 839a98a0d79..76059f32237 100644
--- a/app/views/projects/_clone_panel.html.haml
+++ b/app/views/projects/_clone_panel.html.haml
@@ -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
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 77a0ef1ac4d..de3e9cefc06 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -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();
})