summaryrefslogtreecommitdiff
path: root/app/views/shared/_no_password.html.haml
blob: b561e6dc2480b2610365d3f6873124683fe4e757 (plain)
1
2
3
4
5
6
7
8
9
10
- if cookies[:hide_no_password_message].blank? && !current_user.hide_no_password && current_user.require_password?
  .no-password-message.alert.alert-warning
    - set_password_link = link_to s_('SetPasswordToCloneLink|set a password'), edit_profile_password_path
    - translation_params = { protocol: gitlab_config.protocol.upcase, set_password_link: set_password_link }
    - set_password_message = _("You won't be able to pull or push project code via %{protocol} until you %{set_password_link} on your account") % translation_params

    .alert-link-group
      = link_to _("Don't show again"), profile_path(user: {hide_no_password: true}), method: :put
      |
      = link_to _('Remind later'), '#', class: 'hide-no-password-message'