2021-04-01 11:08:54 -04:00
|
|
|
.js-git-clone-holder.input-group.btn-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
|
2020-11-24 04:09:32 -05:00
|
|
|
= enabled_protocol_button(container, enabled_protocol)
|
2018-04-12 18:55:40 -04:00
|
|
|
- else
|
2022-08-16 14:12:52 -04:00
|
|
|
%a#clone-dropdown.input-group-text.gl-button.btn.btn-default.btn-icon.clone-dropdown-btn{ href: '#', data: { toggle: 'dropdown', qa_selector: 'clone_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
|
2021-04-09 23:09:09 -04:00
|
|
|
= sprite_icon('chevron-down', css_class: 'gl-icon')
|
2022-10-17 20:11:06 -04:00
|
|
|
%ul.dropdown-menu.dropdown-menu-selectable.clone-options-dropdown{ data: { qa_selector: 'clone_dropdown_content' } }
|
2018-04-12 18:55:40 -04:00
|
|
|
%li
|
2020-11-24 04:09:32 -05:00
|
|
|
= ssh_clone_button(container)
|
2018-04-12 18:55:40 -04:00
|
|
|
%li
|
2020-11-24 04:09:32 -05:00
|
|
|
= http_clone_button(container)
|
|
|
|
= render_if_exists 'shared/kerberos_clone_button', container: container
|
2015-12-18 17:12:47 -05:00
|
|
|
|
2022-10-17 14:09:13 -04:00
|
|
|
= text_field_tag :clone_url, default_url_to_repo(container), class: "js-select-on-focus btn gl-button", readonly: true, aria: { label: _('Repository clone URL') }, data: { qa_selector: 'clone_url_content' }
|
2018-04-12 16:49:37 -04:00
|
|
|
.input-group-append
|
2021-04-01 11:08:54 -04:00
|
|
|
= clipboard_button(target: '#clone_url', title: _("Copy URL"), class: "input-group-text gl-button btn-default btn-clipboard")
|
2019-05-14 07:48:02 -04:00
|
|
|
|