[Jifty-commit] r7446 - jifty/trunk/share/web/templates/_elements
Jifty commits
jifty-commit at lists.jifty.org
Tue Aug 25 03:14:34 EDT 2009
Author: sartak
Date: Tue Aug 25 03:14:34 2009
New Revision: 7446
Modified:
jifty/trunk/share/web/templates/_elements/paging
Log:
More refactoring
Modified: jifty/trunk/share/web/templates/_elements/paging
==============================================================================
--- jifty/trunk/share/web/templates/_elements/paging (original)
+++ jifty/trunk/share/web/templates/_elements/paging Tue Aug 25 03:14:34 2009
@@ -9,6 +9,9 @@
$page ||= 1;
my $last = $collection->pager->last_page;
+my $prev = $collection->pager->previous_page;
+my $next = $collection->pager->next_page;
+
</%init>
<div class="paging-nav">
@@ -34,28 +37,28 @@
% $last_num = $goto_page;
% }
-% if ($collection->pager->previous_page) {
+% if ($prev) {
<span class="paging-prev">
<% Jifty->web->link(
label => "Back",
class => "prev",
onclick => {
args => {
- $argument => $collection->pager->previous_page,
+ $argument => $prev,
},
},
) %>
</span>
% }
-% if ($collection->pager->next_page) {
+% if ($next) {
<span class="paging-next">
<% Jifty->web->link(
label => "Next",
class => "next",
onclick => {
args => {
- $argument => $collection->pager->next_page,
+ $argument => $next,
},
},
) %>
More information about the Jifty-commit
mailing list