2014-01-07 22:03:27 -05:00
|
|
|
- project = project || @project
|
2015-12-18 17:12:47 -05:00
|
|
|
|
2016-01-14 11:42:15 -05:00
|
|
|
.git-clone-holder.input-group
|
|
|
|
.input-group-btn
|
2016-12-23 05:27:41 -05:00
|
|
|
- if allowed_protocols_present?
|
2016-06-29 16:26:02 -04:00
|
|
|
.clone-dropdown-btn.btn.btn-static
|
2016-06-15 18:30:55 -04:00
|
|
|
%span
|
2016-06-29 16:26:02 -04:00
|
|
|
= enabled_project_button(project, enabled_protocol)
|
2016-06-15 18:30:55 -04:00
|
|
|
- else
|
2016-12-26 05:47:16 -05:00
|
|
|
%a#clone-dropdown.clone-dropdown-btn.btn{ href: '#', data: { toggle: 'dropdown' } }
|
2016-06-15 18:30:55 -04:00
|
|
|
%span
|
|
|
|
= default_clone_protocol.upcase
|
|
|
|
= icon('caret-down')
|
2017-08-03 09:11:17 -04:00
|
|
|
%ul.dropdown-menu.dropdown-menu-selectable.dropdown-menu-right.clone-options-dropdown
|
2016-06-15 18:30:55 -04:00
|
|
|
%li
|
|
|
|
= ssh_clone_button(project)
|
|
|
|
%li
|
|
|
|
= http_clone_button(project)
|
2015-12-18 17:12:47 -05:00
|
|
|
|
2017-05-12 06:22:50 -04: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 12:43:27 -05:00
|
|
|
.input-group-btn
|
2017-06-12 07:47:46 -04:00
|
|
|
= clipboard_button(target: '#project_clone', title: _("Copy URL to clipboard"), class: "btn-default btn-clipboard")
|