BigW Consortium Gitlab

_clone_panel.html.haml 914 Bytes
Newer Older
1
- project = project || @project
2

3 4
.git-clone-holder.input-group
  .input-group-btn
5
    - if allowed_protocols_present?
6
      .clone-dropdown-btn.btn.btn-static
7
        %span
8
          = enabled_project_button(project, enabled_protocol)
9
    - else
10
      %a#clone-dropdown.clone-dropdown-btn.btn{ href: '#', data: { toggle: 'dropdown' } }
11 12 13
        %span
          = default_clone_protocol.upcase
        = icon('caret-down')
14
      %ul.dropdown-menu.dropdown-menu-selectable.dropdown-menu-right.clone-options-dropdown
15 16 17 18
        %li
          = ssh_clone_button(project)
        %li
          = http_clone_button(project)
19

20
  = text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true, aria: { label: 'Project clone URL' }
21
  .input-group-btn
22
    = clipboard_button(target: '#project_clone', title: _("Copy URL to clipboard"), class: "btn-default btn-clipboard")