spacing changed from 4 to 2 in _clone_panel.html.haml
.
This commit is contained in:
parent
99682fcdde
commit
8bbcbe7854
1 changed files with 21 additions and 21 deletions
|
@ -1,27 +1,27 @@
|
|||
- project = project || @project
|
||||
|
||||
.git-clone-holder
|
||||
.btn-group.clone-options
|
||||
%a.clone-dropdown-btn.btn{href: '#', 'data-toggle' => 'dropdown'}
|
||||
%span
|
||||
= default_clone_protocol.upcase
|
||||
= icon('angle-down')
|
||||
%ul.dropdown-menu.dropdown-menu-right.clone-options-dropdown
|
||||
%li
|
||||
%a{href: '#', "data-url" => @project.ssh_url_to_repo}
|
||||
SSH
|
||||
%li
|
||||
%a{href: '#', "data-url" => @project.http_url_to_repo}
|
||||
HTTPS
|
||||
.btn-group.clone-options
|
||||
%a.clone-dropdown-btn.btn{href: '#', 'data-toggle' => 'dropdown'}
|
||||
%span
|
||||
= default_clone_protocol.upcase
|
||||
= icon('angle-down')
|
||||
%ul.dropdown-menu.dropdown-menu-right.clone-options-dropdown
|
||||
%li
|
||||
%a{href: '#', "data-url" => @project.ssh_url_to_repo}
|
||||
SSH
|
||||
%li
|
||||
%a{href: '#', "data-url" => @project.http_url_to_repo}
|
||||
HTTPS
|
||||
|
||||
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true
|
||||
.input-group-btn
|
||||
= clipboard_button(clipboard_target: '#project_clone')
|
||||
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true
|
||||
.input-group-btn
|
||||
= clipboard_button(clipboard_target: '#project_clone')
|
||||
|
||||
:javascript
|
||||
$('ul.clone-options-dropdown a').on('click',function(e){
|
||||
e.preventDefault();
|
||||
var $this = $(this);
|
||||
$('a.clone-dropdown-btn span').text($this.text());
|
||||
$('#project_clone').val($this.data('url'));
|
||||
});
|
||||
$('ul.clone-options-dropdown a').on('click',function(e){
|
||||
e.preventDefault();
|
||||
var $this = $(this);
|
||||
$('a.clone-dropdown-btn span').text($this.text());
|
||||
$('#project_clone').val($this.data('url'));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue