diff options
author | mkanat%bugzilla.org <> | 2008-12-06 20:44:42 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-12-06 20:44:42 +0100 |
commit | cce0280bc6d98dbe6ba73e59b092e469f3435dd0 (patch) | |
tree | bf9b3549632f768b714370c5f8a16af59972eb47 /template/en/default/list | |
parent | 33429813a654f7a93a7be40b35e9fb7629d74dab (diff) | |
download | bugzilla-cce0280bc6d98dbe6ba73e59b092e469f3435dd0.tar.gz bugzilla-cce0280bc6d98dbe6ba73e59b092e469f3435dd0.tar.xz |
Bug 463002 - Show a description of what you searched for, at the top of buglist.cgi
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bbaetz, a=mkanat
Diffstat (limited to 'template/en/default/list')
-rw-r--r-- | template/en/default/list/list.html.tmpl | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 8d67e6c41..467e4dfc7 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -28,7 +28,7 @@ [%# Template Initialization #%] [%############################################################################%] -[% PROCESS global/variables.none.tmpl %] +[% PROCESS "global/field-descs.none.tmpl" %] [% title = "$terms.Bug List" %] [% IF searchname || defaultsavename %] @@ -58,11 +58,6 @@ </span> [% IF debug %] - <p class="bz_query_debug"> - [% FOREACH debugline = debugdata %] - [% debugline FILTER html %]<br> - [% END %] - </p> <p class="bz_query">[% query FILTER html %]</p> [% IF query_explain.defined %] <pre class="bz_query_explain">[% query_explain FILTER html %]</pre> @@ -85,6 +80,26 @@ </h2> [% END %] +[% SET shown_types = [ + 'notequal', 'regexp', 'notregexp', 'lessthan', 'lessthaneq', + 'greaterthan', 'greaterthaneq', 'changedbefore', 'changedafter', + 'changedfrom', 'changedto', 'changedby', +] %] +<ul class="search_description"> +[% FOREACH desc_item = search_description %] + <li> + <strong>[% field_descs.${desc_item.field} FILTER html %]:</strong> + [% IF shown_types.contains(desc_item.type) || debug %] + ([% search_descs.${desc_item.type} FILTER html %]) + [% END %] + [%+ desc_item.value FILTER html %] + [% IF debug %] + (<code>[% desc_item.term FILTER html %]</code>) + [% END %] + </li> +[% END %] +</ul> + <hr> [%############################################################################%] |