2017-06-12 12:13:22 -04:00
|
|
|
- if show_no_ssh_key_message?
|
2020-03-16 17:09:21 -04:00
|
|
|
%div{ class: 'no-ssh-key-message gl-alert gl-alert-warning', role: 'alert' }
|
2020-08-10 14:09:54 -04:00
|
|
|
= sprite_icon('warning', css_class: 'gl-icon s16 gl-alert-icon gl-alert-icon-no-title')
|
2020-05-15 08:08:28 -04:00
|
|
|
%button{ class: 'gl-alert-dismiss hide-no-ssh-message', type: 'button', 'aria-label': _('Dismiss') }
|
2020-08-10 14:09:54 -04:00
|
|
|
= sprite_icon('close', css_class: 'gl-icon s16')
|
2020-03-16 17:09:21 -04:00
|
|
|
.gl-alert-body
|
2020-11-24 04:09:32 -05:00
|
|
|
= s_("MissingSSHKeyWarningLink|You won't be able to pull or push repositories via SSH until you add an SSH key to your profile")
|
2020-03-16 17:09:21 -04:00
|
|
|
.gl-alert-actions
|
2021-01-21 01:09:03 -05:00
|
|
|
= link_to s_('MissingSSHKeyWarningLink|Add SSH key'), profile_keys_path, class: "btn gl-alert-action btn-warning btn-md gl-button"
|
2020-08-23 20:10:19 -04:00
|
|
|
= link_to s_("MissingSSHKeyWarningLink|Don't show again"), profile_path(user: {hide_no_ssh_key: true}), method: :put, role: 'button', class: 'btn gl-alert-action btn-md btn-warning gl-button btn-warning-secondary'
|