2018-12-07 09:11:42 -05:00
|
|
|
- project = project || @project
|
|
|
|
|
|
|
|
.git-clone-holder.js-git-clone-holder.input-group
|
2018-12-23 23:58:24 -05:00
|
|
|
%a#clone-dropdown.input-group-text.btn.btn-primary.btn-xs.clone-dropdown-btn.qa-clone-dropdown{ href: '#', data: { toggle: 'dropdown' } }
|
|
|
|
%span.append-right-4.js-clone-dropdown-label
|
|
|
|
= _('Clone')
|
|
|
|
= sprite_icon("arrow-down", css_class: "icon")
|
2018-12-25 17:44:16 -05:00
|
|
|
%ul.p-3.dropdown-menu.dropdown-menu-right.dropdown-menu-large.dropdown-menu-selectable.clone-options-dropdown.qa-clone-options
|
|
|
|
- if ssh_enabled?
|
|
|
|
%li.pb-2
|
|
|
|
%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
|
|
|
|
= clipboard_button(target: '#ssh_project_clone', title: _("Copy URL to clipboard"), class: "input-group-text btn-default btn-clipboard")
|
|
|
|
= render_if_exists 'projects/buttons/geo'
|
|
|
|
- if http_enabled?
|
|
|
|
%li
|
2018-12-07 09:11:42 -05:00
|
|
|
%label.label-bold
|
|
|
|
= _('Clone with %{http_label}') % { http_label: gitlab_config.protocol.upcase }
|
|
|
|
.input-group
|
2018-11-26 10:59:52 -05:00
|
|
|
= 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' }
|
2018-12-07 09:11:42 -05:00
|
|
|
.input-group-append
|
|
|
|
= clipboard_button(target: '#http_project_clone', title: _("Copy URL to clipboard"), class: "input-group-text btn-default btn-clipboard")
|
|
|
|
= render_if_exists 'projects/buttons/geo'
|
|
|
|
|
|
|
|
= render_if_exists 'shared/geo_info_modal', project: project
|