mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Empty string "" facets can now be selected in UI, refs #255
This commit is contained in:
parent
5e78d11c24
commit
8003a13331
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@
|
|||
<ul>
|
||||
{% for facet_value in facet_info.results %}
|
||||
{% if not facet_value.selected %}
|
||||
<li><a href="{{ facet_value.toggle_url }}">{{ facet_value.label }}</a> {{ "{:,}".format(facet_value.count) }}</li>
|
||||
<li><a href="{{ facet_value.toggle_url }}">{{ facet_value.label or "_" }}</a> {{ "{:,}".format(facet_value.count) }}</li>
|
||||
{% else %}
|
||||
<li>{{ facet_value.label }} · {{ "{:,}".format(facet_value.count) }} <a href="{{ facet_value.toggle_url }}" class="cross">✖</a></li>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue