added a count of total bookmarks on each page
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 8 Nov 2011 18:28:01 +0000 (13:28 -0500)
committerBenjamin Mako Hill <mako@atdot.cc>
Tue, 8 Nov 2011 19:59:17 +0000 (14:59 -0500)
The patch adds a count of the total number of bookmarks that would be
displayed if there were not a per-page limit for the current page. It is
added in parentheses to the subheader on each page or not shown at all
if the variable is not defined for the page.

templates/top.inc.php

index 68786224f881dcc5fcd2dabfc548ab1093187b9a..390fbf392ab165be9ad82d1a191da65e15da0afa 100644 (file)
@@ -41,7 +41,11 @@ if (isset($_GET['popup'])) {
 
 <?php
 if (isset($subtitle)) {
 
 <?php
 if (isset($subtitle)) {
-    echo '<h2>'. $subtitle ."</h2>\n";
+    echo '<h2>'. $subtitle;
+    if (isset($total)) {
+        echo " (" . $total . ")";
+    }
+    echo "</h2>\n";
 }
 if (isset($error)) {
     echo '<p class="error">'. $error ."</p>\n";
 }
 if (isset($error)) {
     echo '<p class="error">'. $error ."</p>\n";

Benjamin Mako Hill || Want to submit a patch?