gitlab-org--gitlab-foss/app/views/shared/_no_password.html.haml
Robin Bobbitt 7eb26c7ff7 Provide hint to create a personal access token for Git over HTTP
If internal auth is disabled and user is not an LDAP user, present
the user with an alert to create a personal access token if he does
not have one already.
2017-06-26 14:41:27 -04:00

9 lines
590 B
Text

- if show_no_password_message?
.no-password-message.alert.alert-warning
- translation_params = { protocol: gitlab_config.protocol.upcase, set_password_link: link_to_set_password }
- 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
= set_password_message.html_safe
.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'