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

23 lines
921 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- project = project || @project
.git-clone-holder.input-group
.input-group-btn
2017-08-17 22:00:37 +05:30
- if allowed_protocols_present?
2018-03-17 18:26:18 +05:30
.clone-dropdown-btn.btn
2016-08-24 12:49:21 +05:30
%span
= enabled_project_button(project, enabled_protocol)
- else
2018-03-17 18:26:18 +05:30
%a#clone-dropdown.btn.clone-dropdown-btn.qa-clone-dropdown{ href: '#', data: { toggle: 'dropdown' } }
2016-08-24 12:49:21 +05:30
%span
= default_clone_protocol.upcase
= icon('caret-down')
2017-09-10 17:25:29 +05:30
%ul.dropdown-menu.dropdown-menu-selectable.dropdown-menu-right.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' }
2015-12-23 02:04:40 +05:30
.input-group-btn
2017-09-10 17:25:29 +05:30
= clipboard_button(target: '#project_clone', title: _("Copy URL to clipboard"), class: "btn-default btn-clipboard")