[Rt-commit] r14839 - rt/branches/3.6-EXPERIMENTAL-PAGING/html/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Tue Aug 5 22:28:56 EDT 2008
Author: ruz
Date: Tue Aug 5 22:28:55 2008
New Revision: 14839
Modified:
rt/branches/3.6-EXPERIMENTAL-PAGING/html/Elements/TicketList
Log:
* delete oddRows variable
Modified: rt/branches/3.6-EXPERIMENTAL-PAGING/html/Elements/TicketList
==============================================================================
--- rt/branches/3.6-EXPERIMENTAL-PAGING/html/Elements/TicketList (original)
+++ rt/branches/3.6-EXPERIMENTAL-PAGING/html/Elements/TicketList Tue Aug 5 22:28:55 2008
@@ -73,11 +73,7 @@
% if ($Rows && $ShowNavigation) {
<hr>
-% my $oddRows;
-% if (($TotalFound % $Rows) == 0) {
-% $oddRows = 0;
-% } else { $oddRows = 1; }
-% my $pages = int($TotalFound/$Rows)+$oddRows;
+% my $pages = int($TotalFound/$Rows) + (($TotalFound % $Rows) == 0)? 0 : 1;
% $pages = 1 if $pages < 1;
<&|/l, $Page, $pages &>Page [_1] of [_2]</&>
More information about the Rt-commit
mailing list