Bug 345290: Give a CSS class to various sections of the buglist, including quips - Patch by timeless <timeless@bemail.org> r=wicked a=mkanat

This commit is contained in:
lpsolit%gmail.com 2007-05-10 11:42:59 +00:00
Родитель 21b313d9be
Коммит 2ccac740cf
1 изменённых файлов: 32 добавлений и 24 удалений

Просмотреть файл

@ -51,31 +51,35 @@
atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom"
%] %]
<div align="center"> <div class="bz_query_head" align="center">
[% IF Param('timezone') %] <span class="bz_query_timestamp">
<b>[% time2str("%a %b %e %Y %T %Z", currenttime, Param('timezone')) %]</b><br> [% IF Param('timezone') %]
[% ELSE %] <b>[% time2str("%a %b %e %Y %T %Z", currenttime, Param('timezone')) %]</b><br>
<b>[% time2str("%a %b %e %Y %T", currenttime) %]</b><br> [% ELSE %]
[% END %] <b>[% time2str("%a %b %e %Y %T", currenttime) %]</b><br>
[% END %]
</span>
[% IF debug %] [% IF debug %]
<p> <p class="bz_query_debug">
[% FOREACH debugline = debugdata %] [% FOREACH debugline = debugdata %]
[% debugline FILTER html %]<br> [% debugline FILTER html %]<br>
[% END %] [% END %]
</p> </p>
<p>[% query FILTER html %]</p> <p class="bz_query">[% query FILTER html %]</p>
[% END %] [% END %]
[% IF user.settings.display_quips.value == 'on' %] [% IF user.settings.display_quips.value == 'on' %]
[% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %] [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %]
<a href="quips.cgi"><i>[% quip FILTER html %]</i></a> <span class="bz_quip">
<a href="quips.cgi"><i>[% quip FILTER html %]</i></a>
</span>
[% END %] [% END %]
</div> </div>
[% IF toolong %] [% IF toolong %]
<h2> <h2 class="bz_smallminded">
This list is too long for [% terms.Bugzilla %]'s little mind; the This list is too long for [% terms.Bugzilla %]'s little mind; the
Next/Prev/First/Last buttons won't appear on individual [% terms.bugs %]. Next/Prev/First/Last buttons won't appear on individual [% terms.bugs %].
</h2> </h2>
@ -88,7 +92,9 @@
[%############################################################################%] [%############################################################################%]
[% IF bugs.size > 9 %] [% IF bugs.size > 9 %]
[% bugs.size %] [%+ terms.bugs %] found. <span class="bz_result_count">
[% bugs.size %] [%+ terms.bugs %] found.
</span>
[% END %] [% END %]
[%############################################################################%] [%############################################################################%]
@ -110,13 +116,15 @@
[%# Succeeding Status Line #%] [%# Succeeding Status Line #%]
[%############################################################################%] [%############################################################################%]
[% IF bugs.size == 0 %] <span class="bz_result_count">
[% terms.zeroSearchResults %]. [% IF bugs.size == 0 %]
[% ELSIF bugs.size == 1 %] [% terms.zeroSearchResults %].
One [% terms.bug %] found. [% ELSIF bugs.size == 1 %]
[% ELSE %] One [% terms.bug %] found.
[% bugs.size %] [%+ terms.bugs %] found. [% ELSE %]
[% END %] [% bugs.size %] [%+ terms.bugs %] found.
[% END %]
</span>
<br> <br>
@ -137,7 +145,7 @@
<table> <table>
<tr> <tr>
[% IF bugs.size > 0 %] [% IF bugs.size > 0 %]
<td valign="middle"> <td valign="middle" class="bz_query_buttons">
<form method="post" action="show_bug.cgi"> <form method="post" action="show_bug.cgi">
[% FOREACH id = buglist %] [% FOREACH id = buglist %]
<input type="hidden" name="id" value="[% id FILTER html %]"> <input type="hidden" name="id" value="[% id FILTER html %]">
@ -164,7 +172,7 @@
<td>&nbsp;</td> <td>&nbsp;</td>
<td valign="middle"> <td valign="middle" class="bz_query_links">
<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="buglist.cgi? <a href="buglist.cgi?
@ -193,7 +201,7 @@
</td> </td>
[% END %] [% END %]
<td valign="middle"> <td valign="middle" class="bz_query_edit">
[% editqueryname = searchname OR defaultsavename OR '' %] [% editqueryname = searchname OR defaultsavename OR '' %]
<a href="query.cgi?[% urlquerypart FILTER html %] <a href="query.cgi?[% urlquerypart FILTER html %]
[% IF editqueryname != '' %]&amp;known_name= [% IF editqueryname != '' %]&amp;known_name=
@ -202,7 +210,7 @@
</td> </td>
[% IF searchtype == "saved" %] [% IF searchtype == "saved" %]
<td valign="middle" nowrap="nowrap"> <td valign="middle" nowrap="nowrap" class="bz_query_forget">
| |
<a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd= <a href="buglist.cgi?cmdtype=dorem&amp;remaction=forget&amp;namedcmd=
[% searchname FILTER url_quote %]">Forget&nbsp;Search&nbsp;' [% searchname FILTER url_quote %]">Forget&nbsp;Search&nbsp;'
@ -211,7 +219,7 @@
[% ELSE %] [% ELSE %]
<td>&nbsp;</td> <td>&nbsp;</td>
<td valign="middle"> <td valign="middle" class="bz_query_remember">
<form method="get" action="buglist.cgi"> <form method="get" action="buglist.cgi">
<input type="submit" id="remember" value="Remember search"> as <input type="submit" id="remember" value="Remember search"> as
<input type="hidden" name="newquery" <input type="hidden" name="newquery"
@ -227,7 +235,7 @@
</table> </table>
[% IF cgi.param('product').size == 1 && cgi.param('product') != "" %] [% IF cgi.param('product').size == 1 && cgi.param('product') != "" %]
<p> <p class="bz_query_single_product">
<a href="enter_bug.cgi?product=[% cgi.param('product') FILTER url_quote %]">File <a href="enter_bug.cgi?product=[% cgi.param('product') FILTER url_quote %]">File
a new [% terms.bug %] in the "[% cgi.param('product') FILTER html %]" product</a> a new [% terms.bug %] in the "[% cgi.param('product') FILTER html %]" product</a>
</p> </p>