From: Benjamin Mako Hill Date: Tue, 8 Nov 2011 18:28:01 +0000 (-0500) Subject: added a count of total bookmarks on each page X-Git-Url: https://projects.mako.cc/source/scuttle/commitdiff_plain/dd2ff2161984457b57fa93cf554b1d4128f988ee added a count of total bookmarks on each page 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. --- diff --git a/templates/top.inc.php b/templates/top.inc.php index 6878622..390fbf3 100644 --- a/templates/top.inc.php +++ b/templates/top.inc.php @@ -41,7 +41,11 @@ if (isset($_GET['popup'])) { '. $subtitle ."\n"; + echo '

'. $subtitle; + if (isset($total)) { + echo " (" . $total . ")"; + } + echo "

\n"; } if (isset($error)) { echo '

'. $error ."

\n";