2019-05-30 13:56:56 -04:00
- page_title _('GPG Keys')
2017-12-21 12:43:57 -05:00
- @content_class = "limit-container-width" unless fluid_layout
2017-02-22 10:24:48 -05:00
.row.prepend-top-default
2018-01-15 17:37:04 -05:00
.col-lg-4.profile-settings-sidebar
2020-05-21 14:08:27 -04:00
%h4.gl-mt-0
2017-02-22 10:24:48 -05:00
= page_title
%p
2019-05-30 13:56:56 -04:00
= _('GPG keys allow you to verify signed commits.')
2018-01-15 17:37:04 -05:00
.col-lg-8
2020-05-21 14:08:27 -04:00
%h5.gl-mt-0
2019-05-30 13:56:56 -04:00
= _('Add a GPG key')
2017-07-03 03:41:32 -04:00
%p.profile-settings-content
2019-05-30 13:56:56 -04:00
- help_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/project/repository/gpg_signed_commits/index.md') }
= _('Before you can add a GPG key you need to %{help_link_start}Generate it.%{help_link_end}'.html_safe) % {help_link_start: help_link_start, help_link_end:'</a>'.html_safe }
2017-02-22 10:24:48 -05:00
= render 'form'
%hr
%h5
2019-05-30 13:56:56 -04:00
= _('Your GPG keys (%{count})') % { count:@gpg_keys.count}
2020-06-22 11:09:27 -04:00
.gl-mb-3
2017-02-22 10:24:48 -05:00
= render 'key_table'