2014-09-02 18:07:02 +05:30
|
|
|
- project = project || @project
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
.git-clone-holder.input-group
|
|
|
|
.input-group-btn
|
2016-01-14 18:37:52 +05:30
|
|
|
%a#clone-dropdown.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
|
2016-06-02 11:05:42 +05:30
|
|
|
= ssh_clone_button(project)
|
2016-01-14 18:37:52 +05:30
|
|
|
%li
|
2016-06-02 11:05:42 +05:30
|
|
|
= http_clone_button(project)
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true
|
2015-12-23 02:04:40 +05:30
|
|
|
.input-group-btn
|
|
|
|
= clipboard_button(clipboard_target: '#project_clone')
|
2016-01-14 18:37:52 +05:30
|
|
|
|
|
|
|
: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.attr('href'));
|
|
|
|
});
|