[Jifty-commit] r7602 - in jifty/trunk/share/web: templates/_elements
Jifty commits
jifty-commit at lists.jifty.org
Thu Nov 12 07:30:38 EST 2009
Author: sartak
Date: Thu Nov 12 07:30:32 2009
New Revision: 7602
Modified:
jifty/trunk/share/web/static/css/crud.css
jifty/trunk/share/web/templates/_elements/paging
Log:
Support for an "all" link in /_elements/paging
Modified: jifty/trunk/share/web/static/css/crud.css
==============================================================================
--- jifty/trunk/share/web/static/css/crud.css (original)
+++ jifty/trunk/share/web/static/css/crud.css Thu Nov 12 07:30:32 2009
@@ -101,6 +101,6 @@
font-weight: bold;
}
-.paging-prev, .paging-next {
+.paging-prev, .paging-next, .paging-all {
font-size: 0.8em;
}
Modified: jifty/trunk/share/web/templates/_elements/paging
==============================================================================
--- jifty/trunk/share/web/templates/_elements/paging (original)
+++ jifty/trunk/share/web/templates/_elements/paging Thu Nov 12 07:30:32 2009
@@ -4,6 +4,7 @@
$per_page => 15
$argument => 'page'
$hide_single_page => 1
+$allow_all => 0
</%args>
<%init>
return if $collection->count == 0;
@@ -68,5 +69,19 @@
</span>
% }
+% if ($allow_all && $last > 1) {
+<span class="paging-all">
+ <% Jifty->web->link(
+ label => "All",
+ class => "all",
+ onclick => {
+ args => {
+ $argument => 'all',
+ },
+ },
+ ) %>
+</span>
+% }
+
</span>
</div>
More information about the Jifty-commit
mailing list