diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-13 15:33:28 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-13 16:44:42 +0300 |
commit | 25e44d05300a6b5b35232b27b4ccb27f47f09a67 (patch) | |
tree | f46c5753255cae37b492a988ffffd9d1dd4d1f6d /app/views/shared/_no_password.html.haml | |
parent | 529188e4788991961796b1b6131389072ee61efb (diff) |
Allow users that signed up via OAuth to set their password in order to use Git over HTTP(S).
Diffstat (limited to 'app/views/shared/_no_password.html.haml')
-rw-r--r-- | app/views/shared/_no_password.html.haml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/shared/_no_password.html.haml b/app/views/shared/_no_password.html.haml new file mode 100644 index 00000000000..022097cda16 --- /dev/null +++ b/app/views/shared/_no_password.html.haml @@ -0,0 +1,8 @@ +- if cookies[:hide_no_password_message].blank? && !current_user.hide_no_password && current_user.password_automatically_set? + .no-password-message.alert.alert-warning.hidden-xs + You won't be able to pull or push project code via #{gitlab_config.protocol.upcase} until you #{link_to 'set a password', edit_profile_password_path} on your account + + .pull-right + = link_to "Don't show again", profile_path(user: {hide_no_password: true}), method: :put + | + = link_to 'Remind later', '#', class: 'hide-no-password-message' |