2021-04-29 21:17:54 +05:30
|
|
|
.js-git-clone-holder.input-group.btn-group
|
2018-11-08 19:23:39 +05:30
|
|
|
.input-group-prepend
|
2017-08-17 22:00:37 +05:30
|
|
|
- if allowed_protocols_present?
|
2018-11-08 19:23:39 +05:30
|
|
|
.input-group-text.clone-dropdown-btn.btn
|
2018-11-20 20:47:30 +05:30
|
|
|
%span.js-clone-dropdown-label
|
2021-02-22 17:27:13 +05:30
|
|
|
= enabled_protocol_button(container, enabled_protocol)
|
2016-08-24 12:49:21 +05:30
|
|
|
- else
|
2022-08-27 11:52:29 +05:30
|
|
|
%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-11-20 20:47:30 +05:30
|
|
|
%span.js-clone-dropdown-label
|
2016-08-24 12:49:21 +05:30
|
|
|
= default_clone_protocol.upcase
|
2021-04-29 21:17:54 +05:30
|
|
|
= sprite_icon('chevron-down', css_class: 'gl-icon')
|
2022-11-25 23:54:43 +05:30
|
|
|
%ul.dropdown-menu.dropdown-menu-selectable.clone-options-dropdown{ data: { qa_selector: 'clone_dropdown_content' } }
|
2016-08-24 12:49:21 +05:30
|
|
|
%li
|
2021-02-22 17:27:13 +05:30
|
|
|
= ssh_clone_button(container)
|
2016-08-24 12:49:21 +05:30
|
|
|
%li
|
2021-02-22 17:27:13 +05:30
|
|
|
= http_clone_button(container)
|
|
|
|
= render_if_exists 'shared/kerberos_clone_button', container: container
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2022-11-25 23:54:43 +05:30
|
|
|
= 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-11-08 19:23:39 +05:30
|
|
|
.input-group-append
|
2021-04-29 21:17:54 +05:30
|
|
|
= clipboard_button(target: '#clone_url', title: _("Copy URL"), class: "input-group-text gl-button btn-default btn-clipboard")
|
2019-09-04 21:01:54 +05:30
|
|
|
|