[Jifty-commit] r7464 - jifty/trunk/share/web/templates/_elements
Jifty commits
jifty-commit at lists.jifty.org
Fri Aug 28 05:33:42 EDT 2009
Author: sartak
Date: Fri Aug 28 05:33:39 2009
New Revision: 7464
Modified:
jifty/trunk/share/web/templates/_elements/paging
Log:
By default, hide the paging widget if there's only 1 page
Modified: jifty/trunk/share/web/templates/_elements/paging
==============================================================================
--- jifty/trunk/share/web/templates/_elements/paging (original)
+++ jifty/trunk/share/web/templates/_elements/paging Fri Aug 28 05:33:39 2009
@@ -3,6 +3,7 @@
$page => 1
$per_page => 15
$argument => 'page'
+$hide_single_page => 1
</%args>
<%init>
return if $collection->count == 0;
@@ -12,6 +13,8 @@
my $prev = $collection->pager->previous_page;
my $next = $collection->pager->next_page;
+return if $last == 1 && $hide_single_page;
+
</%init>
<div class="paging-nav">
More information about the Jifty-commit
mailing list