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>
<td valign="top"> [% IF bugs.size > 0 %]
<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,11 +148,15 @@ ...@@ -163,11 +148,15 @@
<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 %]
</td>
[% END %]
<td valign="bottom">
<a href="query.cgi?[% urlquerypart FILTER html %]">Edit&nbsp;Search</a> <a href="query.cgi?[% urlquerypart FILTER html %]">Edit&nbsp;Search</a>
</td> </td>
[% IF searchname %] [% IF searchname %]
<td valign="top" nowrap="nowrap"> <td valign="bottom" nowrap="nowrap">
| |
<a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd= <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
[% searchname FILTER html %]">Forget&nbsp;Search&nbsp;' [% searchname FILTER html %]">Forget&nbsp;Search&nbsp;'
...@@ -175,7 +164,8 @@ ...@@ -175,7 +164,8 @@
</td> </td>
[% ELSE %] [% ELSE %]
<td>&nbsp;</td> <td>&nbsp;</td>
<td>
<td valign="bottom">
<form method="get" action="buglist.cgi"> <form method="get" action="buglist.cgi">
<input type="submit" value="Remember search"> as <input type="submit" value="Remember search"> as
<input type="hidden" name="newquery" <input type="hidden" name="newquery"
...@@ -187,9 +177,8 @@ ...@@ -187,9 +177,8 @@
</td> </td>
[% END %] [% END %]
</tr> </tr>
</table> </table>
</p> </p>
[% END %]
[%############################################################################%] [%############################################################################%]
......
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