Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_mobile_clone_panel.html.haml « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa3043b8fd600e403acdc7619dea23791b0ea1b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- project = project || @project
- ssh_copy_label = _("Copy SSH clone URL")
- http_copy_label = _('Copy %{http_label} clone URL') % { http_label: gitlab_config.protocol.upcase }

.btn-group.mobile-git-clone.js-mobile-git-clone.btn-block
  = 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" } }
    = sprite_icon("chevron-down", css_class: "dropdown-btn-icon icon")
  %ul.dropdown-menu.dropdown-menu-selectable.dropdown-menu-right.clone-options-dropdown{ data: { dropdown: true } }
    - if ssh_enabled?
      %li
        = 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)
    - if http_enabled?
      %li
        = dropdown_item_with_description(http_copy_label, http_clone_url_to_repo(project), href: http_clone_url_to_repo(project), data: { clone_type: 'http' })
    = render_if_exists 'shared/mobile_kerberos_clone'