2014-01-08 03:03:27 +00:00
|
|
|
- project = project || @project
|
2015-12-18 22:12:47 +00:00
|
|
|
|
2016-01-14 16:42:15 +00:00
|
|
|
.git-clone-holder.input-group
|
|
|
|
.input-group-btn
|
2016-12-23 10:27:41 +00:00
|
|
|
- if allowed_protocols_present?
|
2016-06-29 20:26:02 +00:00
|
|
|
.clone-dropdown-btn.btn.btn-static
|
2016-06-15 22:30:55 +00:00
|
|
|
%span
|
2016-06-29 20:26:02 +00:00
|
|
|
= enabled_project_button(project, enabled_protocol)
|
2016-06-15 22:30:55 +00:00
|
|
|
- else
|
2016-12-26 10:47:16 +00:00
|
|
|
%a#clone-dropdown.clone-dropdown-btn.btn{ href: '#', data: { toggle: 'dropdown' } }
|
2016-06-15 22:30:55 +00:00
|
|
|
%span
|
|
|
|
= default_clone_protocol.upcase
|
|
|
|
= icon('caret-down')
|
2017-08-03 13:11:17 +00:00
|
|
|
%ul.dropdown-menu.dropdown-menu-selectable.dropdown-menu-right.clone-options-dropdown
|
2016-06-15 22:30:55 +00:00
|
|
|
%li
|
|
|
|
= ssh_clone_button(project)
|
|
|
|
%li
|
|
|
|
= http_clone_button(project)
|
2015-12-18 22:12:47 +00:00
|
|
|
|
2017-05-12 10:22:50 +00:00
|
|
|
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true, aria: { label: 'Project clone URL' }
|
2015-12-23 17:43:27 +00:00
|
|
|
.input-group-btn
|
2017-06-12 11:47:46 +00:00
|
|
|
= clipboard_button(target: '#project_clone', title: _("Copy URL to clipboard"), class: "btn-default btn-clipboard")
|