Show a signup link under the login form if open signup is enabled

This commit is contained in:
Jyri-Petteri Paloposki 2020-07-23 20:48:38 +03:00
parent e0dc5b21ac
commit f86285b7b3
3 changed files with 10 additions and 0 deletions

View file

@ -30,6 +30,10 @@ body {
color: #eaeaea;
text-decoration: underline;
}
.signup-prompt {
text-align: right;
}
}

View file

@ -29,6 +29,11 @@
</div>
<%= submit_tag t("login.sign_in"), class: "btn btn-default" %>
<% end %>
<% if SITE_CONFIG['open_signups'] -%>
<div class="signup-prompt">
<%= link_to t('login.signup_prompt'), url_for(:action => 'new', :controller => 'users') %>
</div>
<% end -%>
</div>
</div>
</div>

View file

@ -1009,6 +1009,7 @@ en:
login:
login_cas: go to the CAS
sign_in: Sign in
signup_prompt: Want to create an account?
openid_identity_url_not_found: "Sorry, no user by that identity URL exists (%{identity_url})"
user_no_expiry: Stay logged in
cas_no_user_found: "Hello, %{username}! You do not have an account on Tracks."