2015-04-30 13:06:18 -04:00
- page_title "SSH Keys"
2017-06-22 10:47:50 -04:00
- @content_class = "limit-container-width" unless fluid_layout
2015-09-09 17:05:47 -04:00
2016-02-29 12:19:00 -05:00
.row.prepend-top-default
2017-06-22 10:47:50 -04:00
.col-lg-4.profile-settings-sidebar
2016-02-29 12:19:00 -05:00
%h4.prepend-top-0
= page_title
%p
SSH keys allow you to establish a secure connection between your computer and GitLab.
2017-06-22 10:47:50 -04:00
.col-lg-8
2016-02-29 12:19:00 -05:00
%h5.prepend-top-0
Add an SSH key
2016-03-02 05:16:51 -05:00
%p.profile-settings-content
2018-06-25 04:30:12 -04:00
- generate_link_url = help_page_path("ssh/README", anchor: 'generating-a-new-ssh-key-pair')
- existing_link_url = help_page_path("ssh/README", anchor: 'locating-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 }
2016-02-29 12:19:00 -05:00
= render 'form'
%hr
%h5
Your SSH keys (#{@keys.count})
2016-12-23 04:37:12 -05:00
.append-bottom-default
2016-03-03 15:49:00 -05:00
= render 'key_table'