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

14 lines
939 B
Text
Raw Normal View History

2018-11-20 20:47:30 +05:30
- project = project || @project
- ssh_copy_label = _("Copy SSH clone URL")
2019-01-03 12:48:30 +05:30
- http_copy_label = _("Copy HTTPS clone URL")
2018-11-20 20:47:30 +05:30
2019-01-03 12:48:30 +05:30
.btn-group.mobile-git-clone.js-mobile-git-clone
= clipboard_button(button_text: default_clone_label, target: '#project_clone', hide_button_icon: true, class: "input-group-text clone-dropdown-btn js-clone-dropdown-label btn btn-default")
%button.btn.btn-default.dropdown-toggle.js-dropdown-toggle{ type: "button", data: { toggle: "dropdown" } }
= icon("caret-down", class: "dropdown-btn-icon")
2018-11-20 20:47:30 +05:30
%ul.dropdown-menu.dropdown-menu-selectable.dropdown-menu-right.clone-options-dropdown{ data: { dropdown: true } }
%li
2019-01-03 12:48:30 +05:30
= dropdown_item_with_description(ssh_copy_label, project.ssh_url_to_repo, href: project.ssh_url_to_repo, data: { clone_type: 'ssh' })
2018-11-20 20:47:30 +05:30
%li
= dropdown_item_with_description(http_copy_label, project.http_url_to_repo, href: project.http_url_to_repo, data: { clone_type: 'http' })