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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
1.2 KiB
Text
Raw Normal View History

2018-11-20 20:47:30 +05:30
- project = project || @project
- ssh_copy_label = _("Copy SSH clone URL")
2019-02-15 15:39:39 +05:30
- http_copy_label = _('Copy %{http_label} clone URL') % { http_label: gitlab_config.protocol.upcase }
2018-11-20 20:47:30 +05:30
2019-02-15 15:39:39 +05:30
.btn-group.mobile-git-clone.js-mobile-git-clone.btn-block
2021-04-29 21:17:54 +05:30
= clipboard_button(button_text: default_clone_label, text: default_url_to_repo(project), hide_button_icon: true, class: "gl-button btn-confirm flex-fill bold justify-content-center input-group-text clone-dropdown-btn js-clone-dropdown-label")
%button.btn.gl-button.btn-confirm.dropdown-toggle.js-dropdown-toggle.flex-grow-0.d-flex-center.w-auto.ml-0{ type: "button", data: { toggle: "dropdown" } }
2020-03-13 15:44:24 +05:30
= sprite_icon("chevron-down", css_class: "dropdown-btn-icon icon")
2018-11-20 20:47:30 +05:30
%ul.dropdown-menu.dropdown-menu-selectable.dropdown-menu-right.clone-options-dropdown{ data: { dropdown: true } }
2019-02-15 15:39:39 +05:30
- if ssh_enabled?
%li
2023-05-27 22:25:52 +05:30
= dropdown_item_with_description(ssh_copy_label, ssh_clone_url_to_repo(project), href: ssh_clone_url_to_repo(project), data: { clone_type: 'ssh' }, default: true)
2019-02-15 15:39:39 +05:30
- if http_enabled?
%li
2023-05-27 22:25:52 +05:30
= dropdown_item_with_description(http_copy_label, http_clone_url_to_repo(project), href: http_clone_url_to_repo(project), data: { clone_type: 'http' })
2019-05-03 19:53:19 +05:30
= render_if_exists 'shared/mobile_kerberos_clone'