2017-06-12 16:13:22 +00:00
|
|
|
- if show_no_ssh_key_message?
|
2022-04-05 18:09:00 +00:00
|
|
|
= render Pajamas::AlertComponent.new(variant: :warning,
|
2022-06-14 15:08:43 +00:00
|
|
|
alert_options: { class: 'js-no-ssh-message' },
|
|
|
|
close_button_options: { class: 'js-hide-no-ssh-message'}) do |c|
|
2022-05-06 00:07:56 +00:00
|
|
|
= c.body do
|
2021-11-05 18:12:21 +00:00
|
|
|
= s_("MissingSSHKeyWarningLink|You can't push or pull repositories using SSH until you add an SSH key to your profile.")
|
2022-05-06 00:07:56 +00:00
|
|
|
= c.actions do
|
2021-11-05 18:12:21 +00: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'
|