2018-09-06 03:27:39 -04:00
|
|
|
- project = project || @project
|
|
|
|
- ssh_copy_label = _("Copy SSH clone URL")
|
2018-12-07 09:11:42 -05:00
|
|
|
- http_copy_label = _('Copy %{http_label} clone URL') % { http_label: gitlab_config.protocol.upcase }
|
2018-09-06 03:27:39 -04:00
|
|
|
|
2018-12-07 09:11:42 -05:00
|
|
|
.btn-group.mobile-git-clone.js-mobile-git-clone.btn-block
|
|
|
|
= clipboard_button(button_text: default_clone_label, text: default_url_to_repo(project), hide_button_icon: true, class: "btn-primary flex-fill bold justify-content-center input-group-text clone-dropdown-btn js-clone-dropdown-label")
|
2020-01-29 13:08:47 -05:00
|
|
|
%button.btn.btn-primary.dropdown-toggle.js-dropdown-toggle.flex-grow-0.d-flex-center.w-auto.ml-0{ type: "button", data: { toggle: "dropdown" } }
|
2018-12-07 09:11:42 -05:00
|
|
|
= sprite_icon("arrow-down", css_class: "dropdown-btn-icon icon")
|
2018-09-06 03:27:39 -04:00
|
|
|
%ul.dropdown-menu.dropdown-menu-selectable.dropdown-menu-right.clone-options-dropdown{ data: { dropdown: true } }
|
2018-12-24 01:17:03 -05:00
|
|
|
- if ssh_enabled?
|
|
|
|
%li
|
|
|
|
= dropdown_item_with_description(ssh_copy_label, project.ssh_url_to_repo, href: project.ssh_url_to_repo, data: { clone_type: 'ssh' }, default: true)
|
|
|
|
- if http_enabled?
|
|
|
|
%li
|
|
|
|
= dropdown_item_with_description(http_copy_label, project.http_url_to_repo, href: project.http_url_to_repo, data: { clone_type: 'http' })
|
2019-03-04 18:21:13 -05:00
|
|
|
= render_if_exists 'shared/mobile_kerberos_clone'
|