From 38f4fd5bb3181fb1504759df8e62a32ec84deca0 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Thu, 10 Apr 2025 16:59:29 -0400 Subject: [PATCH] fix: display search category on list page --- umap/static/umap/base.css | 4 ++++ umap/templates/umap/search.html | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index 6374adfd..30c717e5 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -235,3 +235,7 @@ dt { display: block; overflow-x: auto; } +mark { + background-color: var(--color-lightCyan); + padding: 0 var(--small-box-padding); +} diff --git a/umap/templates/umap/search.html b/umap/templates/umap/search.html index 7883bb65..5f619dba 100644 --- a/umap/templates/umap/search.html +++ b/umap/templates/umap/search.html @@ -32,7 +32,16 @@ {% endif %} {% else %}

- {% trans "Latest created maps" %} + {% if request.GET.tags %} + {% trans "Latest created maps in category" %} + {% for value, label in UMAP_TAGS %} + {% if request.GET.tags == value %} + {{ label }}: + {% endif %} + {% endfor %} + {% else %} + {% trans "Latest created maps" %} + {% endif %}

{% include "umap/map_list.html" with prefix="search_map" %}