past comp is displayed; condition on link and route
This commit is contained in:
@@ -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%}
|
||||
|
||||
Reference in New Issue
Block a user