mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-01 10:30:15 +01: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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue