mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: display search category on list page (#2635)
This commit is contained in:
commit
10f87c0b6e
2 changed files with 14 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
|
|
|
@ -32,7 +32,16 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2>
|
<h2>
|
||||||
{% 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 %}
|
||||||
|
<mark>{{ label }}</mark>:
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
{% 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" %}
|
||||||
|
|
Loading…
Reference in a new issue