]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 103523: Don't split buglist table every 100 bugs for new browsers
authormkanat%bugzilla.org <>
Tue, 28 Apr 2009 20:16:49 +0000 (20:16 +0000)
committermkanat%bugzilla.org <>
Tue, 28 Apr 2009 20:16:49 +0000 (20:16 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

template/en/default/list/table.html.tmpl

index 9b27b0094482422b8842b4fcb371256714629330..ed1f3de3f4e59cbfa40d823d3e45e5ff468ef23c 100644 (file)
 [%# Bug Table                                                                #%]
 [%############################################################################%]
 
+[% tableheader %]
+
 [% FOREACH bug = bugs %]
   [% 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
              bz_[% bug.bug_severity FILTER css_class_quote -%]
 
   </tr>
 
-  [%# At the end of every hundred bugs in the list, or at the end of the list,
-    # end the current table. 
-    #%]
-  [% IF loop.last() || loop.count() % 100 == 0 %]
-    [% IF loop.last() && time_info.time_present == 1 %]
-      [% PROCESS time_summary_line %]
-    [% END %]
-    </table>
+  [% IF loop.last() && time_info.time_present == 1 %]
+    [% PROCESS time_summary_line %]
   [% END %]
 
 [% END %]
 
+</table>
 
 [% BLOCK time_summary_line %]
   <tr class="bz_time_summary_line">