From b1e4faeb9eb3398fc8dee795b2203ae0c141bdfb Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Fri, 2 Feb 2018 16:52:48 +0000 Subject: Add an option to show all of the routers (<1) --- index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8f661ac..f3b3249 100644 --- a/index.php +++ b/index.php @@ -40,10 +40,17 @@ final class LookingGlass { $this->doc = $config['doc']; } + private function router_count() { + if ($this->frontpage['router_count'] > 0) + return $this->frontpage['router_count']; + else + return count($this->routers); + } + private function render_routers() { print('
'); print(''); - print(''); $first = true; foreach (array_keys($this->routers) as $router) { -- cgit v1.2.3