Browse Source

Register: hide invite-only warning if code present

Most people are coming to the register page through the register links
that people give them as an invite (and it isn't even linked from
anywhere on the site itself). There's no need to show the warning about
the site being invite-only if they've got a code, so we'll only show it
if people happen across this page by typing in the url manually or
something similar.

This also makes the warning a little more prominent by changing it to a
toast instead of just colored text.
merge-requests/55/head
Deimos 6 years ago
parent
commit
a237d13d2c
  1. 8
      tildes/tildes/templates/register.jinja2

8
tildes/tildes/templates/register.jinja2

@ -8,9 +8,11 @@
{% block main_heading %}Register a new account{% endblock %}
{% block content %}
<p class="text-warning">
Registration is currently invite-only. You must have a valid invite code to be able to register.
</p>
{% if not code %}
<div class="toast toast-warning">
Registration is currently invite-only. You must have a valid invite code to be able to register.
</div>
{% endif %}
<p>Please check the sidebar for information about username and password restrictions.</p>

Loading…
Cancel
Save