mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
Show a signup link under the login form if open signup is enabled
This commit is contained in:
parent
e0dc5b21ac
commit
f86285b7b3
3 changed files with 10 additions and 0 deletions
|
@ -30,6 +30,10 @@ body {
|
|||
color: #eaeaea;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.signup-prompt {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue