Commit eb6a2a89 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 184252: Display a link below each table in request.cgi pointing to its…

Bug 184252: Display a link below each table in request.cgi pointing to its corresponding buglist - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
parent bfcab9b8
...@@ -173,14 +173,12 @@ to some group are shown by default. ...@@ -173,14 +173,12 @@ to some group are shown by default.
</p> </p>
[% ELSE %] [% ELSE %]
[% FOREACH request = requests %] [% FOREACH request = requests %]
[% IF loop.first %] [% PROCESS start_new_table %] [% END %]
[% IF request.$group_field != group_value %] [% IF request.$group_field != group_value %]
[% group_value = request.$group_field %] [% group_value = request.$group_field %]
[% UNLESS loop.first %] [% PROCESS display_buglist UNLESS loop.first %]
</table> [% PROCESS start_new_table %]
[% PROCESS start_new_table %]
[% END %]
[% END %] [% END %]
[% buglist.${request.bug_id} = 1 %]
<tr> <tr>
[% FOREACH column = display_columns %] [% FOREACH column = display_columns %]
[% NEXT IF column == group_field || excluded_columns.contains(column) %] [% NEXT IF column == group_field || excluded_columns.contains(column) %]
...@@ -188,12 +186,14 @@ to some group are shown by default. ...@@ -188,12 +186,14 @@ to some group are shown by default.
[% END %] [% END %]
</tr> </tr>
[% END %] [% END %]
</table> [% PROCESS display_buglist %]
[% END %] [% END %]
[% PROCESS global/footer.html.tmpl %] [% PROCESS global/footer.html.tmpl %]
[% BLOCK start_new_table %] [% BLOCK start_new_table %]
[% buglist = {} %]
<h3>[% column_headers.$group_field %]: <h3>[% column_headers.$group_field %]:
[%+ (request.$group_field || "None") FILTER email FILTER html %]</h3> [%+ (request.$group_field || "None") FILTER email FILTER html %]</h3>
<table class="requests" cellspacing="0" cellpadding="4" border="1"> <table class="requests" cellspacing="0" cellpadding="4" border="1">
...@@ -239,3 +239,8 @@ to some group are shown by default. ...@@ -239,3 +239,8 @@ to some group are shown by default.
[% request.created FILTER time %] [% request.created FILTER time %]
[% END %] [% 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 %]
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