From 3540c1bedc77d7a2d73493b1f1b468c449e26cf7 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 23 Jul 2015 08:21:25 +0000 Subject: [PATCH] Merged in [9851] from lars@netapp.com: 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. - Legacy-Id: 9864 Note: SVN reference [9851] has been migrated to Git commit 7a8c6d714c1b1cb7e6a418df315d3a9f35e9adbb --- ietf/templates/doc/search/search_results.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ietf/templates/doc/search/search_results.html b/ietf/templates/doc/search/search_results.html index fd80291a0..9b0b8ffa1 100644 --- a/ietf/templates/doc/search/search_results.html +++ b/ietf/templates/doc/search/search_results.html @@ -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 %} -
- No documents match your query. -
+{% if not docs %} + {% if not skip_no_matches_warning %} +
No documents match your query.
+ {% endif %} {% else %} {% if meta.max %}