2019-09-04 21:01:54 +05:30
- page_title _('SSH Keys')
2017-09-10 17:25:29 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2015-09-25 12:07:36 +05:30
2020-07-28 23:09:34 +05:30
.row.gl-mt-3
2017-09-10 17:25:29 +05:30
.col-lg-4.profile-settings-sidebar
2020-06-23 00:09:42 +05:30
%h4.gl-mt-0
2016-06-02 11:05:42 +05:30
= page_title
%p
2019-09-04 21:01:54 +05:30
= _('SSH keys allow you to establish a secure connection between your computer and GitLab.')
2017-09-10 17:25:29 +05:30
.col-lg-8
2020-06-23 00:09:42 +05:30
%h5.gl-mt-0
2019-09-04 21:01:54 +05:30
= _('Add an SSH key')
2016-06-02 11:05:42 +05:30
%p.profile-settings-content
2021-09-30 23:02:18 +05:30
- generate_link_url = help_page_path("ssh/index", anchor: 'generate-an-ssh-key-pair')
- existing_link_url = help_page_path("ssh/index", anchor: 'see-if-you-have-an-existing-ssh-key-pair')
2018-11-08 19:23:39 +05:30
- 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-06-02 11:05:42 +05:30
= render 'form'
%hr
%h5
2021-04-29 21:17:54 +05:30
= _('Your SSH keys (%{count})') % { count: @keys.count }
2020-07-28 23:09:34 +05:30
.gl-mb-3
2016-06-02 11:05:42 +05:30
= render 'key_table'