summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-12-07 20:29:32 +0100
committerlpsolit%gmail.com <>2009-12-07 20:29:32 +0100
commiteb6a2a89a7d28ad7de06ab769900b12b951782c9 (patch)
tree385547d22bcbee0af4e68a44cfb6c741a3f865ab
parentbfcab9b81d3aa6b31124a6068dda8f5061d4089a (diff)
downloadbugzilla-eb6a2a89a7d28ad7de06ab769900b12b951782c9.tar.gz
bugzilla-eb6a2a89a7d28ad7de06ab769900b12b951782c9.tar.xz
Bug 184252: Display a link below each table in request.cgi pointing to its corresponding buglist - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
-rw-r--r--template/en/default/request/queue.html.tmpl17
1 files changed, 11 insertions, 6 deletions
diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl
index 4be33ca88..98a331622 100644
--- a/template/en/default/request/queue.html.tmpl
+++ b/template/en/default/request/queue.html.tmpl
@@ -173,14 +173,12 @@ to some group are shown by default.
</p>
[% ELSE %]
[% FOREACH request = requests %]
- [% IF loop.first %] [% PROCESS start_new_table %] [% END %]
[% IF request.$group_field != group_value %]
[% group_value = request.$group_field %]
- [% UNLESS loop.first %]
- </table>
- [% PROCESS start_new_table %]
- [% END %]
+ [% PROCESS display_buglist UNLESS loop.first %]
+ [% PROCESS start_new_table %]
[% END %]
+ [% buglist.${request.bug_id} = 1 %]
<tr>
[% FOREACH column = display_columns %]
[% NEXT IF column == group_field || excluded_columns.contains(column) %]
@@ -188,12 +186,14 @@ to some group are shown by default.
[% END %]
</tr>
[% END %]
- </table>
+ [% PROCESS display_buglist %]
[% END %]
[% PROCESS global/footer.html.tmpl %]
[% BLOCK start_new_table %]
+ [% buglist = {} %]
+
<h3>[% column_headers.$group_field %]:
[%+ (request.$group_field || "None") FILTER email FILTER html %]</h3>
<table class="requests" cellspacing="0" cellpadding="4" border="1">
@@ -239,3 +239,8 @@ to some group are shown by default.
[% request.created FILTER time %]
[% END %]
+[% BLOCK display_buglist %]
+ </table>
+ [% NEXT UNLESS buglist.keys.size %]
+ <a href="buglist.cgi?bug_id=[% buglist.keys.nsort.join(",") FILTER html %]">(view as buglist)</a>
+[% END %]