summaryrefslogtreecommitdiff
path: root/app/views/profiles/keys/index.html.haml
blob: 80027cdfed0945a822fd52c39b29446b8f92916f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- page_title _('SSH Keys')
- @content_class = "limit-container-width" unless fluid_layout

.row.gl-mt-3
  .col-lg-4.profile-settings-sidebar
    %h4.gl-mt-0
      = page_title
    %p
      = _('SSH keys allow you to establish a secure connection between your computer and GitLab.')
  .col-lg-8
    %h5.gl-mt-0
      = _('Add an SSH key')
    %p.profile-settings-content
      - generate_link_url = help_page_path("ssh/README", anchor: 'generate-an-ssh-key-pair')
      - existing_link_url = help_page_path("ssh/README", anchor: 'see-if-you-have-an-existing-ssh-key-pair')
      - generate_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: generate_link_url }
      - existing_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: existing_link_url }
      = _('To add an SSH key you need to %{generate_link_start}generate one%{link_end} or use an %{existing_link_start}existing key%{link_end}.').html_safe % { generate_link_start: generate_link_start, existing_link_start: existing_link_start, link_end: '</a>'.html_safe }
    = render 'form'
    %hr
    %h5
      = _('Your SSH keys (%{count})') % { count:@keys.count }
    .gl-mb-3
      = render 'key_table'