debian-mirror-gitlab/app/views/shared/_clone_panel.html.haml

28 lines
1.2 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- project = project || @project
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
2016-08-24 12:49:21 +05:30
= enabled_project_button(project, enabled_protocol)
- 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
= icon('caret-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
= ssh_clone_button(project)
%li
= http_clone_button(project)
2019-09-04 21:01:54 +05:30
= render_if_exists 'shared/kerberos_clone_button', project: project
2017-09-10 17:25:29 +05:30
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true, aria: { label: 'Project clone URL' }
2018-11-08 19:23:39 +05:30
.input-group-append
2019-12-21 20:55:43 +05:30
= clipboard_button(target: '#project_clone', title: _("Copy URL"), class: "input-group-text btn-default btn-clipboard")
2019-09-04 21:01:54 +05:30
= render_if_exists 'shared/geo_modal_button'
= render_if_exists 'shared/geo_modal', project: project