From 65d75763b90b9485b52f15e2938951ad0fbfaa21 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 29 Oct 2009 04:46:15 +0000 Subject: Bug 524234: When there are no search results, include helpful links Patch by Max Kanat-Alexander r=dkl, a=mkanat --- template/en/default/list/list.html.tmpl | 43 ++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 9 deletions(-) (limited to 'template/en/default/list/list.html.tmpl') diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 7c372f1f4..a3e3a767a 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -142,7 +142,7 @@ [% IF bugs.size == 0 %] - [% terms.zeroSearchResults %]. + [% terms.zeroSearchResults %]. [% ELSIF bugs.size == 1 %] One [% terms.bug %] found. [% ELSE %] @@ -150,6 +150,18 @@ [% END %] +[% IF bugs.size == 0 %] + +[% END %] +
[%############################################################################%] @@ -226,11 +238,7 @@ [% END %] - [% editqueryname = searchname OR defaultsavename OR '' %] - Edit Search + Edit Search [% IF searchtype == "saved" %] @@ -259,10 +267,9 @@ -[% IF cgi.param('product').size == 1 && cgi.param('product') != "" %] +[% IF one_product.defined %]

- File - a new [% terms.bug %] in the "[% cgi.param('product') FILTER html %]" product + [% PROCESS enter_bug_link %]

[% END %] @@ -271,3 +278,21 @@ [%############################################################################%] [% PROCESS global/footer.html.tmpl %] + +[% BLOCK edit_search_url %] + [% editqueryname = searchname OR defaultsavename OR '' %] + query.cgi?[% urlquerypart FILTER html %] + [%- IF editqueryname != '' %]&known_name= + [%- editqueryname FILTER url_quote %] + [% END %] +[% END %] + +[% BLOCK enter_bug_link %] + File + a new [% terms.bug %] + [% IF one_product.defined %] + in the "[% one_product.name FILTER html %]" product + [% END %] +[% END %] -- cgit v1.2.3-24-g4f1b