Commit de34a344 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 225303 - Cannot remove stored query when no bugs are found. Patch by gerv; r=jouni, a=justdave.

parent 088cfbc5
...@@ -67,7 +67,6 @@ ...@@ -67,7 +67,6 @@
<hr> <hr>
[%############################################################################%] [%############################################################################%]
[%# Preceding Status Line #%] [%# Preceding Status Line #%]
[%############################################################################%] [%############################################################################%]
...@@ -76,7 +75,6 @@ ...@@ -76,7 +75,6 @@
[% bugs.size %]&nbsp;[% terms.bugs %] found. [% bugs.size %]&nbsp;[% terms.bugs %] found.
[% END %] [% END %]
[%############################################################################%] [%############################################################################%]
[%# Start of Change Form #%] [%# Start of Change Form #%]
[%############################################################################%] [%############################################################################%]
...@@ -85,7 +83,6 @@ ...@@ -85,7 +83,6 @@
<form name="changeform" method="post" action="process_bug.cgi"> <form name="changeform" method="post" action="process_bug.cgi">
[% END %] [% END %]
[%############################################################################%] [%############################################################################%]
[%# Bug Table #%] [%# Bug Table #%]
[%############################################################################%] [%############################################################################%]
...@@ -99,54 +96,42 @@ ...@@ -99,54 +96,42 @@
[% IF bugs.size == 0 %] [% IF bugs.size == 0 %]
[% terms.zeroSearchResults %]. [% terms.zeroSearchResults %].
<p>
<a href="query.cgi">Query Page</a>
&nbsp;&nbsp;<a href="enter_bug.cgi">Enter New [% terms.Bug %]</a>
<a href="query.cgi?[% urlquerypart FILTER html %]">Edit this query</a>
</p>
[% ELSIF bugs.size == 1 %] [% ELSIF bugs.size == 1 %]
One [% terms.bug %] found. One [% terms.bug %] found.
[% ELSE %] [% ELSE %]
[% bugs.size %]&nbsp;[% terms.bugs %] found. [% bugs.size %]&nbsp;[% terms.bugs %] found.
[% END %] [% END %]
<br> <br>
[%############################################################################%] [%############################################################################%]
[%# Rest of Change Form #%] [%# Rest of Change Form #%]
[%############################################################################%] [%############################################################################%]
[% IF dotweak %] [% IF dotweak %]
[% PROCESS "list/edit-multiple.html.tmpl" %] [% PROCESS "list/edit-multiple.html.tmpl" %]
</form> </form>
<hr> <hr>
[% END %] [% END %]
[%############################################################################%] [%############################################################################%]
[%# Navigation Bar #%] [%# Navigation Bar #%]
[%############################################################################%] [%############################################################################%]
[% IF bugs.size > 0 %] <p>
<p> <table>
<table> <tr>
<tr> [% IF bugs.size > 0 %]
<td valign="top"> <td valign="bottom">
<form method="post" action="long_list.cgi"> <form method="post" action="long_list.cgi">
<input type="hidden" name="buglist" value="[% buglist %]"> <input type="hidden" name="buglist" value="[% buglist %]">
<input type="submit" value="Long Format"> <input type="submit" value="Long Format">
</form> </form>
</td> </td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td valign="top">
<td valign="bottom">
<a href="buglist.cgi? <a href="buglist.cgi?
[% urlquerypart FILTER html %]&amp;ctype=csv">CSV</a> | [% urlquerypart FILTER html %]&amp;ctype=csv">CSV</a> |
<a href="colchange.cgi? <a href="colchange.cgi?
...@@ -163,33 +148,37 @@ ...@@ -163,33 +148,37 @@
<a href="mailto: <a href="mailto:
[% bugowners FILTER html %]">Send&nbsp;Mail&nbsp;to&nbsp;[% terms.Bug %]&nbsp;Owners</a> | [% bugowners FILTER html %]">Send&nbsp;Mail&nbsp;to&nbsp;[% terms.Bug %]&nbsp;Owners</a> |
[% END %] [% END %]
<a href="query.cgi?[% urlquerypart FILTER html %]">Edit&nbsp;Search</a>
</td> </td>
[% IF searchname %] [% END %]
<td valign="top" nowrap="nowrap">
| <td valign="bottom">
<a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd= <a href="query.cgi?[% urlquerypart FILTER html %]">Edit&nbsp;Search</a>
[% searchname FILTER html %]">Forget&nbsp;Search&nbsp;' </td>
[% searchname FILTER html %]'</a>
</td> [% IF searchname %]
[% ELSE %] <td valign="bottom" nowrap="nowrap">
<td>&nbsp;</td> |
<td> <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
<form method="get" action="buglist.cgi"> [% searchname FILTER html %]">Forget&nbsp;Search&nbsp;'
<input type="submit" value="Remember search"> as [% searchname FILTER html %]'</a>
<input type="hidden" name="newquery" </td>
value="[% urlquerypart FILTER html %]"> [% ELSE %]
<input type="hidden" name="cmdtype" value="doit"> <td>&nbsp;</td>
<input type="hidden" name="remtype" value="asnamed">
<input type="text" name="newqueryname" size="20"> <td valign="bottom">
</form> <form method="get" action="buglist.cgi">
</td> <input type="submit" value="Remember search"> as
[% END %] <input type="hidden" name="newquery"
</tr> value="[% urlquerypart FILTER html %]">
</table> <input type="hidden" name="cmdtype" value="doit">
</p> <input type="hidden" name="remtype" value="asnamed">
[% END %] <input type="text" name="newqueryname" size="20">
</form>
</td>
[% END %]
</tr>
</table>
</p>
[%############################################################################%] [%############################################################################%]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment