Commit 41eac19c authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 103523: Don't split buglist table every 100 bugs for new browsers

Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent b4b8090b
...@@ -156,14 +156,10 @@ ...@@ -156,14 +156,10 @@
[%# Bug Table #%] [%# Bug Table #%]
[%############################################################################%] [%############################################################################%]
[% tableheader %]
[% FOREACH bug = bugs %] [% FOREACH bug = bugs %]
[% count = loop.count() %] [% count = loop.count() %]
[% FLUSH IF count % 10 == 1 %]
[%# At the beginning of every hundred bugs in the list, start a new table. %]
[% IF count % 100 == 1 %]
[% tableheader %]
[% END %]
<tr class="bz_bugitem <tr class="bz_bugitem
bz_[% bug.bug_severity FILTER css_class_quote -%] bz_[% bug.bug_severity FILTER css_class_quote -%]
...@@ -219,18 +215,13 @@ ...@@ -219,18 +215,13 @@
</tr> </tr>
[%# At the end of every hundred bugs in the list, or at the end of the list, [% IF loop.last() && time_info.time_present == 1 %]
# end the current table. [% PROCESS time_summary_line %]
#%]
[% IF loop.last() || loop.count() % 100 == 0 %]
[% IF loop.last() && time_info.time_present == 1 %]
[% PROCESS time_summary_line %]
[% END %]
</table>
[% END %] [% END %]
[% END %] [% END %]
</table>
[% BLOCK time_summary_line %] [% BLOCK time_summary_line %]
<tr class="bz_time_summary_line"> <tr class="bz_time_summary_line">
......
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