2014-01-07 22:03:27 -05:00
|
|
|
- project = project || @project
|
2015-12-18 17:12:47 -05:00
|
|
|
|
2018-09-06 03:27:39 -04:00
|
|
|
.git-clone-holder.js-git-clone-holder.input-group
|
2018-04-12 16:49:37 -04:00
|
|
|
.input-group-prepend
|
2018-04-12 18:55:40 -04:00
|
|
|
- if allowed_protocols_present?
|
|
|
|
.input-group-text.clone-dropdown-btn.btn
|
2018-09-06 03:27:39 -04:00
|
|
|
%span.js-clone-dropdown-label
|
2018-04-12 18:55:40 -04:00
|
|
|
= enabled_project_button(project, enabled_protocol)
|
|
|
|
- else
|
|
|
|
%a#clone-dropdown.input-group-text.btn.clone-dropdown-btn.qa-clone-dropdown{ href: '#', data: { toggle: 'dropdown' } }
|
2018-09-06 03:27:39 -04:00
|
|
|
%span.js-clone-dropdown-label
|
2018-04-12 18:55:40 -04:00
|
|
|
= default_clone_protocol.upcase
|
|
|
|
= icon('caret-down')
|
2018-06-15 17:30:19 -04:00
|
|
|
%ul.dropdown-menu.dropdown-menu-selectable.clone-options-dropdown
|
2018-04-12 18:55:40 -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' }
|
2018-04-12 16:49:37 -04:00
|
|
|
.input-group-append
|
2018-05-10 15:22:56 -04:00
|
|
|
= clipboard_button(target: '#project_clone', title: _("Copy URL to clipboard"), class: "input-group-text btn-default btn-clipboard")
|