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:
authorJason Hollingsworth <jhworth.developer@gmail.com>2014-01-08 07:03:27 +0400
committerJason Hollingsworth <jhworth.developer@gmail.com>2014-01-08 20:06:03 +0400
commit04baf0b569a84430cb8c366594b82a72a4ff73b6 (patch)
tree051514d054ad61a6f59608d86ecb749e6146dcba /app/views/projects/wikis/git_access.html.haml
parent3c7a80646198c546a2cfd4aa05b7724f51a6eb7f (diff)
Update clone panel to use input group.
Use clone panel in `Git Access` section of wiki.
Diffstat (limited to 'app/views/projects/wikis/git_access.html.haml')
-rw-r--r--app/views/projects/wikis/git_access.html.haml17
1 files changed, 8 insertions, 9 deletions
diff --git a/app/views/projects/wikis/git_access.html.haml b/app/views/projects/wikis/git_access.html.haml
index 55fb6d5bf7b..b62c4975416 100644
--- a/app/views/projects/wikis/git_access.html.haml
+++ b/app/views/projects/wikis/git_access.html.haml
@@ -1,13 +1,12 @@
= render 'nav'
-%h3.page-title
- Git access for
- %strong= @gollum_wiki.path_with_namespace
+.row
+ .col-sm-6
+ %h3.page-title
+ Git access for
+ %strong= @gollum_wiki.path_with_namespace
- .form-horizontal.pull-right
- .git-clone-holder
- %button{class: "btn active", :"data-clone" => @gollum_wiki.ssh_url_to_repo} SSH
- %button{class: "btn", :"data-clone" => @gollum_wiki.http_url_to_repo}= gitlab_config.protocol.upcase
- = text_field_tag :project_clone, @gollum_wiki.url_to_repo, class: "one_click_select form-control", readonly: true
+ .col-sm-6
+ = render "shared/clone_panel", project: @gollum_wiki
.git-empty
%fieldset
@@ -19,7 +18,7 @@
%legend Clone Your Wiki:
%pre.dark
:preserve
- git clone #{@gollum_wiki.ssh_url_to_repo}
+ git clone #{ content_tag(:span, default_url_to_repo(@gollum_wiki), class: 'clone')}
cd #{@gollum_wiki.path}
%legend Start Gollum And Edit Locally: