Commit 8bbcbe78 authored by Jacob Schatz's avatar Jacob Schatz

spacing changed from 4 to 2 in ` _clone_panel.html.haml`.

parent 99682fcd
- project = project || @project - project = project || @project
.git-clone-holder .git-clone-holder
.btn-group.clone-options .btn-group.clone-options
%a.clone-dropdown-btn.btn{href: '#', 'data-toggle' => 'dropdown'} %a.clone-dropdown-btn.btn{href: '#', 'data-toggle' => 'dropdown'}
%span %span
= default_clone_protocol.upcase = default_clone_protocol.upcase
= icon('angle-down') = icon('angle-down')
%ul.dropdown-menu.dropdown-menu-right.clone-options-dropdown %ul.dropdown-menu.dropdown-menu-right.clone-options-dropdown
%li %li
%a{href: '#', "data-url" => @project.ssh_url_to_repo} %a{href: '#', "data-url" => @project.ssh_url_to_repo}
SSH SSH
%li %li
%a{href: '#', "data-url" => @project.http_url_to_repo} %a{href: '#', "data-url" => @project.http_url_to_repo}
HTTPS HTTPS
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true = text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true
.input-group-btn .input-group-btn
= clipboard_button(clipboard_target: '#project_clone') = clipboard_button(clipboard_target: '#project_clone')
:javascript :javascript
$('ul.clone-options-dropdown a').on('click',function(e){ $('ul.clone-options-dropdown a').on('click',function(e){
e.preventDefault(); e.preventDefault();
var $this = $(this); var $this = $(this);
$('a.clone-dropdown-btn span').text($this.text()); $('a.clone-dropdown-btn span').text($this.text());
$('#project_clone').val($this.data('url')); $('#project_clone').val($this.data('url'));
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment