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

23 lines
1 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)
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
= clipboard_button(target: '#project_clone', title: _("Copy URL to clipboard"), class: "input-group-text btn-default btn-clipboard")