2017-09-10 17:25:29 +05:30
|
|
|
- if show_no_ssh_key_message?
|
2022-06-21 17:19:12 +05:30
|
|
|
= render Pajamas::AlertComponent.new(variant: :warning,
|
2021-12-11 22:18:48 +05:30
|
|
|
alert_class: 'js-no-ssh-message',
|
2022-07-16 23:28:13 +05:30
|
|
|
close_button_class: 'js-hide-no-ssh-message') do |c|
|
|
|
|
= c.body do
|
2021-12-11 22:18:48 +05:30
|
|
|
= s_("MissingSSHKeyWarningLink|You can't push or pull repositories using SSH until you add an SSH key to your profile.")
|
2022-07-16 23:28:13 +05:30
|
|
|
= c.actions do
|
2021-12-11 22:18:48 +05:30
|
|
|
= 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'
|