fix: display search category on list page

This commit is contained in:
David Larlet 2025-04-10 16:59:29 -04:00
parent 985d91a9c7
commit 38f4fd5bb3
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD
2 changed files with 14 additions and 1 deletions

View file

@ -235,3 +235,7 @@ dt {
display: block; display: block;
overflow-x: auto; overflow-x: auto;
} }
mark {
background-color: var(--color-lightCyan);
padding: 0 var(--small-box-padding);
}

View file

@ -32,7 +32,16 @@
{% endif %} {% endif %}
{% else %} {% else %}
<h2> <h2>
{% if request.GET.tags %}
{% trans "Latest created maps in category" %}
{% for value, label in UMAP_TAGS %}
{% if request.GET.tags == value %}
<mark>{{ label }}</mark>:
{% endif %}
{% endfor %}
{% else %}
{% trans "Latest created maps" %} {% trans "Latest created maps" %}
{% endif %}
</h2> </h2>
<div class="grid-container"> <div class="grid-container">
{% include "umap/map_list.html" with prefix="search_map" %} {% include "umap/map_list.html" with prefix="search_map" %}