Browse Source

gastro: diet filter - do not include diet:xyz=no

parent
commit
6823f502f8
  1. 2
      gastro.yaml

2
gastro.yaml

@ -216,7 +216,7 @@ filter:
values: | values: |
<option weight='-1' value='*' query='nwr[~"^diet:"~"."]'>{{ repoTrans('Objects with diet information') }}</option> <option weight='-1' value='*' query='nwr[~"^diet:"~"."]'>{{ repoTrans('Objects with diet information') }}</option>
{% for key, def in const.diet %} {% for key, def in const.diet %}
<option value='{{ key }}' query='nwr["{{ key }}"]'>{{ keyTrans(key) }}</option>
<option value='{{ key }}' query='nwr["{{ key }}"]["{{ key }}"!=no]'>{{ keyTrans(key) }}</option>
{% endfor %} {% endfor %}
const: const:
diet: diet:

Loading…
Cancel
Save