Index: themes/seven/style.css =================================================================== RCS file: /cvs/drupal/drupal/themes/seven/style.css,v retrieving revision 1.14 diff -u -p -r1.14 style.css --- themes/seven/style.css 23 Aug 2009 01:05:12 -0000 1.14 +++ themes/seven/style.css 24 Aug 2009 12:19:01 -0000 @@ -426,6 +426,32 @@ table tr.selected td { border-color: #eeb; } +/* Pager */ +.short-pager { + float: right; + margin-top: 2em; +} + +.short-pager div { + display: inline; + margin-left: 1em; +} + +.short-pager .short-pager-total { + font-size: 0.8em; + color: #5d5d5d; +} + +.short-pager .short-pager-prev { + background: url(images/arrow-prev.png) no-repeat center left; + padding-left: 10px; +} + +.short-pager .short-pager-next { + background: url(images/arrow-next.png) no-repeat center right; + padding-right: 10px; +} + /** * Forms. */ Index: themes/seven/template.php =================================================================== RCS file: /cvs/drupal/drupal/themes/seven/template.php,v retrieving revision 1.5 diff -u -p -r1.5 template.php --- themes/seven/template.php 22 Aug 2009 14:34:23 -0000 1.5 +++ themes/seven/template.php 24 Aug 2009 12:19:01 -0000 @@ -87,3 +87,41 @@ function seven_fieldset($element) { return '
\n"; } + +/** + * Override of theme_pager(). + * + * Implement "Showing 1-50 of 2345 Next 50 >" type of output. + */ +function seven_pager($tags = array(), $element = 0, $parameters = array(), $quantity = 9) { + global $pager_page_array, $pager_total, $pager_total_items, $pager_limits; + + $total_items = $pager_total_items[$element]; + + if ($total_items == 0) { + // No items to display. + return; + } + + $total_pages = $pager_total[$element]; + $limit = $pager_limits[$element]; + $showing_min = $pager_page_array[$element] * $limit + 1; + $showing_max = min(($pager_page_array[$element] + 1) * $limit, $total_items); + $pager_current = $pager_page_array[$element]; + + $output = '