Commit a1c1b476 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '968-login-message-visible' into 'master'

Fixed login message visible

Closes #968

See merge request !1500
parents 7a75101d 18dbb11a
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
onclick="return confirm('{% trans 'Are you sure you want to cancel your registration?' %}');"/> onclick="return confirm('{% trans 'Are you sure you want to cancel your registration?' %}');"/>
{% endif %} {% endif %}
</form> </form>
{% elif request.user.is_authenticated is False %} {% elif not request.user.is_authenticated and event.registration_required %}
<a class="btn btn-primary" <a class="btn btn-primary"
href="{% url 'login' %}?next={{ request.path }}">{% trans "Login" %}</a> href="{% url 'login' %}?next={{ request.path }}">{% trans "Login" %}</a>
{% endif %} {% endif %}
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
</td> </td>
<td> <td>
<em> <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." %} {% trans "You have to log in before you can register for this event." %}
{% else %} {% else %}
{% if not event.registration_required %} {% 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