summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-09-17 15:49:56 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-09-17 15:49:56 +0200
commit2288b4680c04ec00bff02179de926fdfbd896c79 (patch)
tree65d6675eb2e7f9a6c143b0357e8dddf5703a59be /template/en
parent164d2a87891967a7b5e3935d537319745c00599e (diff)
downloadbugzilla-2288b4680c04ec00bff02179de926fdfbd896c79.tar.gz
bugzilla-2288b4680c04ec00bff02179de926fdfbd896c79.tar.xz
Bug 1068277: No longer able to save/edit/forget a saved search if results are 0 in buglist.cgi
r=LpSolit,a=sgreen
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/list/list.html.tmpl54
1 files changed, 27 insertions, 27 deletions
diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl
index c85564d27..41fe93b93 100644
--- a/template/en/default/list/list.html.tmpl
+++ b/template/en/default/list/list.html.tmpl
@@ -188,8 +188,8 @@
[%# Navigation Bar #%]
[%############################################################################%]
- [% IF bugs.size > 0 %]
- <div class="buglist_menu">
+ <div class="buglist_menu">
+ [% IF bugs.size > 0 %]
<div class="bz_query_buttons">
<form method="post" action="show_bug.cgi">
[% buglist_joined = buglist.join(",") %]
@@ -253,33 +253,33 @@
[% Hook.process("links") %]
</div>
<br>
- <div class="bz_query_edit">
+ [% END %]
+ <div class="bz_query_edit">
<a href="[% PROCESS edit_search_url %]"><button>Edit Search</button></a>
- </div>
-
- [% IF searchtype == "saved" %]
- <div class="bz_query_forget">
- <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
- [% searchname FILTER uri %]&amp;token=
- [% issue_hash_token([search_id, searchname]) FILTER uri %]"
- ><button>Forget Search '[% searchname FILTER html %]'</button></a>
- </div>
- [% ELSE %]
- <div class="bz_query_remember">
- <form method="get" action="buglist.cgi">
- <input type="submit" id="remember" value="Remember search"> as
- <input type="hidden" name="newquery"
- value="[% urlquerypart FILTER html %][% "&order=$qorder" FILTER html IF order %]">
- <input type="hidden" name="cmdtype" value="doit">
- <input type="hidden" name="remtype" value="asnamed">
- <input type="hidden" name="token" value="[% issue_hash_token(['savedsearch']) FILTER html %]">
- <input type="text" id="save_newqueryname" name="newqueryname" size="20"
- title="New query name" value="[% defaultsavename FILTER html %]">
- </form>
- </div>
- [% END %]
</div>
- [% END %]
+
+ [% IF searchtype == "saved" %]
+ <div class="bz_query_forget">
+ <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
+ [% searchname FILTER uri %]&amp;token=
+ [% issue_hash_token([search_id, searchname]) FILTER uri %]"
+ ><button>Forget Search '[% searchname FILTER html %]'</button></a>
+ </div>
+ [% ELSE %]
+ <div class="bz_query_remember">
+ <form method="get" action="buglist.cgi">
+ <input type="submit" id="remember" value="Remember search"> as
+ <input type="hidden" name="newquery"
+ value="[% urlquerypart FILTER html %][% "&order=$qorder" FILTER html IF order %]">
+ <input type="hidden" name="cmdtype" value="doit">
+ <input type="hidden" name="remtype" value="asnamed">
+ <input type="hidden" name="token" value="[% issue_hash_token(['savedsearch']) FILTER html %]">
+ <input type="text" id="save_newqueryname" name="newqueryname" size="20"
+ title="New query name" value="[% defaultsavename FILTER html %]">
+ </form>
+ </div>
+ [% END %]
+ </div>
[% IF one_product.defined && bugs.size %]
<p class="bz_query_single_product">