summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-11-05 03:32:06 -0500
committerMalf Furious <m@lfurio.us>2018-11-05 03:32:06 -0500
commit434ebff8466ead8f9bb4c0f00037a107cbf842c4 (patch)
tree183133c4c4f6ccb7c1e0829c771b02a34eb92901 /app/index.php
parent81ba021468e38de09ac292115bb2f15c9d4deec0 (diff)
downloadscrott-434ebff8466ead8f9bb4c0f00037a107cbf842c4.tar.gz
scrott-434ebff8466ead8f9bb4c0f00037a107cbf842c4.zip
Add pad closed issues view
This view is routable from app/<pad_guid>/closed. It is a separate view for displaying the closed issues of a pad. index.php as well as the pad model code is also updated to support this view. This view currently *does not* support paging. This will very likely be added in the future. Signed-off-by: Malf Furious <m@lfurio.us>
Diffstat (limited to 'app/index.php')
-rw-r--r--app/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/index.php b/app/index.php
index 21f3036..4607351 100644
--- a/app/index.php
+++ b/app/index.php
@@ -111,7 +111,10 @@ function main(array $argv) : void
$obj = new pad($argv[0]);
setPageObj($obj);
setPageName($obj->name);
- require "view/pad.php";
+ if (isset($argv[1]) && $argv[1] == "closed")
+ require "view/pad_closed.php";
+ else
+ require "view/pad.php";
break;
}
}