past comp is displayed; condition on link and route

This commit is contained in:
2025-06-26 11:26:57 +02:00
parent 0345e8e8df
commit 364bdb3d9f
2 changed files with 11 additions and 6 deletions

View File

@@ -23,11 +23,11 @@
{{comp['name']}}<br />
Date: {{comp['date']}}</br>
Number of Places: {{comp['numberOfPlaces']}}
{%if comp['numberOfPlaces']|int >0%}
{%if comp['numberOfPlaces']|int >0 and comp['date'] > now%}
<a href="{{ url_for('book',competition=comp['name'],club=club['name']) }}">Book Places</a>
{%endif%}
</li>
<hr />jinja
<hr />
{% endfor %}
</ul>
{%endwith%}