Market display filter

Closes: #158

Closes: #150
This commit is contained in:
Edward Betts 2024-06-18 06:51:45 +01:00
parent 895bf7c972
commit fcf935271c
3 changed files with 47 additions and 11 deletions

View file

@ -144,6 +144,13 @@
<h3>Agenda</h3>
<div>
Markets:
<a href="{{ url_for(request.endpoint) }}">Hide while away</a>
| <a href="{{ url_for(request.endpoint, markets="show") }}">Show all</a>
| <a href="{{ url_for(request.endpoint, markets="hide") }}">Hide all</a>
</div>
{% for event in events if event.as_date >= two_weeks_ago %}
{% if loop.first or event.date.year != loop.previtem.date.year or event.date.month != loop.previtem.date.month %}
<div class="row mt-2">