2021-04-01 15:08:54 +00:00
|
|
|
.js-git-clone-holder.input-group.btn-group
|
2018-04-12 20:49:37 +00:00
|
|
|
.input-group-prepend
|
2018-04-12 22:55:40 +00:00
|
|
|
- if allowed_protocols_present?
|
|
|
|
.input-group-text.clone-dropdown-btn.btn
|
2018-09-06 07:27:39 +00:00
|
|
|
%span.js-clone-dropdown-label
|
2020-11-24 09:09:32 +00:00
|
|
|
= enabled_protocol_button(container, enabled_protocol)
|
2018-04-12 22:55:40 +00:00
|
|
|
- else
|
2021-04-10 03:09:09 +00:00
|
|
|
%a#clone-dropdown.input-group-text.gl-button.btn.btn-default.btn-icon.clone-dropdown-btn.qa-clone-dropdown{ href: '#', data: { toggle: 'dropdown' } }
|
2018-09-06 07:27:39 +00:00
|
|
|
%span.js-clone-dropdown-label
|
2018-04-12 22:55:40 +00:00
|
|
|
= default_clone_protocol.upcase
|
2021-04-10 03:09:09 +00:00
|
|
|
= sprite_icon('chevron-down', css_class: 'gl-icon')
|
2018-06-15 21:30:19 +00:00
|
|
|
%ul.dropdown-menu.dropdown-menu-selectable.clone-options-dropdown
|
2018-04-12 22:55:40 +00:00
|
|
|
%li
|
2020-11-24 09:09:32 +00:00
|
|
|
= ssh_clone_button(container)
|
2018-04-12 22:55:40 +00:00
|
|
|
%li
|
2020-11-24 09:09:32 +00:00
|
|
|
= http_clone_button(container)
|
|
|
|
= render_if_exists 'shared/kerberos_clone_button', container: container
|
2015-12-18 22:12:47 +00:00
|
|
|
|
2021-04-01 15:08:54 +00: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') }
|
2018-04-12 20:49:37 +00:00
|
|
|
.input-group-append
|
2021-04-01 15:08:54 +00:00
|
|
|
= clipboard_button(target: '#clone_url', title: _("Copy URL"), class: "input-group-text gl-button btn-default btn-clipboard")
|
2019-05-14 11:48:02 +00:00
|
|
|
|