2017-06-12 12:13:22 -04:00
|
|
|
- if show_no_ssh_key_message?
|
2022-04-05 14:09:00 -04:00
|
|
|
= render Pajamas::AlertComponent.new(variant: :warning,
|
2022-06-14 11:08:43 -04:00
|
|
|
alert_options: { class: 'js-no-ssh-message' },
|
|
|
|
close_button_options: { class: 'js-hide-no-ssh-message'}) do |c|
|
2022-05-05 20:07:56 -04:00
|
|
|
= c.body do
|
2021-11-05 14:12:21 -04:00
|
|
|
= s_("MissingSSHKeyWarningLink|You can't push or pull repositories using SSH until you add an SSH key to your profile.")
|
2022-05-05 20:07:56 -04:00
|
|
|
= c.actions do
|
2021-11-05 14:12:21 -04:00
|
|
|
= link_to s_('MissingSSHKeyWarningLink|Add SSH key'), profile_keys_path, class: "gl-alert-action btn btn-confirm btn-md gl-button"
|
|
|
|
= link_to s_("MissingSSHKeyWarningLink|Don't show again"), profile_path(user: { hide_no_ssh_key: true }), method: :put, role: 'button', class: 'gl-alert-action btn btn-default btn-md gl-button'
|