2019-02-15 15:39:39 +05:30
|
|
|
- project = project || @project
|
2020-03-09 13:42:32 +05:30
|
|
|
- dropdown_class = local_assigns.fetch(:dropdown_class, '')
|
2019-02-15 15:39:39 +05:30
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
.git-clone-holder.js-git-clone-holder
|
|
|
|
%a#clone-dropdown.btn.btn-primary.clone-dropdown-btn.qa-clone-dropdown{ href: '#', data: { toggle: 'dropdown' } }
|
2020-07-28 23:09:34 +05:30
|
|
|
%span.gl-mr-2.js-clone-dropdown-label
|
2019-02-15 15:39:39 +05:30
|
|
|
= _('Clone')
|
2020-03-09 13:42:32 +05:30
|
|
|
= sprite_icon("chevron-down", css_class: "icon")
|
|
|
|
%ul.p-3.dropdown-menu.dropdown-menu-large.dropdown-menu-selectable.clone-options-dropdown.qa-clone-options{ class: dropdown_class }
|
2019-02-15 15:39:39 +05:30
|
|
|
- if ssh_enabled?
|
2019-05-03 19:53:19 +05:30
|
|
|
%li
|
2019-02-15 15:39:39 +05:30
|
|
|
%label.label-bold
|
|
|
|
= _('Clone with SSH')
|
|
|
|
.input-group
|
|
|
|
= text_field_tag :ssh_project_clone, project.ssh_url_to_repo, class: "js-select-on-focus form-control qa-ssh-clone-url", readonly: true, aria: { label: 'Project clone URL' }
|
|
|
|
.input-group-append
|
2019-12-21 20:55:43 +05:30
|
|
|
= clipboard_button(target: '#ssh_project_clone', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard")
|
2019-02-15 15:39:39 +05:30
|
|
|
= render_if_exists 'projects/buttons/geo'
|
|
|
|
- if http_enabled?
|
2019-05-03 19:53:19 +05:30
|
|
|
%li.pt-2
|
2019-02-15 15:39:39 +05:30
|
|
|
%label.label-bold
|
|
|
|
= _('Clone with %{http_label}') % { http_label: gitlab_config.protocol.upcase }
|
|
|
|
.input-group
|
|
|
|
= text_field_tag :http_project_clone, project.http_url_to_repo, class: "js-select-on-focus form-control qa-http-clone-url", readonly: true, aria: { label: 'Project clone URL' }
|
|
|
|
.input-group-append
|
2019-12-21 20:55:43 +05:30
|
|
|
= clipboard_button(target: '#http_project_clone', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard")
|
2019-02-15 15:39:39 +05:30
|
|
|
= render_if_exists 'projects/buttons/geo'
|
2019-05-03 19:53:19 +05:30
|
|
|
= render_if_exists 'projects/buttons/kerberos_clone_field'
|