issue: link open count to filtered page
[minimedit.git] / issue / index.php
index df1aa6869c0511e57fafe1c7c3b5053cd3fbeac4..4f0f57f5b9beb1c94446cac70f9a762aee915248 100644 (file)
@@ -111,8 +111,12 @@ ob_start();
 $stats = $Db->query(
        "SELECT count(*) AS total, count(closed) AS closed FROM issues"
 )->fetch();
-printf("<h4>%d lopende zaken, %s opgelost</h4>\n",
-       $stats->total - $stats->closed, $stats->closed
+printf("<h4>%s, %s opgelost</h4>\n",
+       showlink(
+               sprintf('%d lopende zaken', $stats->total - $stats->closed),
+               isset($_GET['open']) ? FALSE : '?open'
+       ),
+       $stats->closed
 );
 print '<ul>';
 while ($row = $query->fetch()) {