debian-mirror-gitlab/app/views/shared/_no_ssh.html.haml

11 lines
898 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- if show_no_ssh_key_message?
2020-04-08 14:13:33 +05:30
%div{ class: 'no-ssh-key-message gl-alert gl-alert-warning', role: 'alert' }
2020-10-24 23:57:45 +05:30
= sprite_icon('warning', css_class: 'gl-icon s16 gl-alert-icon gl-alert-icon-no-title')
2020-05-24 23:13:21 +05:30
%button{ class: 'gl-alert-dismiss hide-no-ssh-message', type: 'button', 'aria-label': _('Dismiss') }
2020-10-24 23:57:45 +05:30
= sprite_icon('close', css_class: 'gl-icon s16')
2020-04-08 14:13:33 +05:30
.gl-alert-body
2021-02-22 17:27:13 +05:30
= s_("MissingSSHKeyWarningLink|You won't be able to pull or push repositories via SSH until you add an SSH key to your profile")
2020-04-08 14:13:33 +05:30
.gl-alert-actions
= link_to s_('MissingSSHKeyWarningLink|Add SSH key'), profile_keys_path, class: "btn gl-alert-action btn-warning btn-md new-gl-button"
2020-11-24 15:15:51 +05:30
= 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'