Commit 18dbb11a authored by Luc Knol's avatar Luc Knol Committed by Sébastiaan Versteeg
Browse files

Removed login button and added message "No registration required" for events...

Removed login button and added message "No registration required" for events for which registration is not required.
parent 7a75101d
......@@ -193,7 +193,7 @@
onclick="return confirm('{% trans 'Are you sure you want to cancel your registration?' %}');"/>
{% endif %}
</form>
{% elif request.user.is_authenticated is False %}
{% elif not request.user.is_authenticated and event.registration_required %}
<a class="btn btn-primary"
href="{% url 'login' %}?next={{ request.path }}">{% trans "Login" %}</a>
{% endif %}
......@@ -204,7 +204,7 @@
</td>
<td>
<em>
{% if not request.user.is_authenticated %}
{% if not request.user.is_authenticated and event.registration_required %}
{% trans "You have to log in before you can register for this event." %}
{% else %}
{% if not event.registration_required %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment