2018-11-20 20:47:30 +05:30
|
|
|
.git-clone-holder.js-git-clone-holder.input-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
|
2018-11-08 19:23:39 +05:30
|
|
|
%a#clone-dropdown.input-group-text.btn.clone-dropdown-btn.qa-clone-dropdown{ href: '#', data: { toggle: '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-02-22 17:27:13 +05:30
|
|
|
= sprite_icon('chevron-down')
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.dropdown-menu.dropdown-menu-selectable.clone-options-dropdown
|
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
|
|
|
|
2021-02-22 17:27:13 +05:30
|
|
|
= text_field_tag :clone_url, default_url_to_repo(container), class: "js-select-on-focus form-control", readonly: true, aria: { label: _('Repository clone URL') }
|
2018-11-08 19:23:39 +05:30
|
|
|
.input-group-append
|
2021-02-22 17:27:13 +05:30
|
|
|
= clipboard_button(target: '#clone_url', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard")
|
2019-09-04 21:01:54 +05:30
|
|
|
|