Fix the logic, so that if there are no matches and we don't want a warning

saying that, there is also no empty table being produced.
Commit ready for merge.
 - Legacy-Id: 9851
This commit is contained in:
Lars Eggert 2015-07-22 11:29:18 +00:00
parent 60cec8481d
commit 7a8c6d714c

View file

@ -1,10 +1,10 @@
{# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %}
{% load ietf_filters %}
{% if not docs and not skip_no_matches_warning %}
<div class="alert alert-info">
No documents match your query.
</div>
{% if not docs %}
{% if not skip_no_matches_warning %}
<div class="alert alert-info">No documents match your query.</div>
{% endif %}
{% else %}
{% if meta.max %}