From 434ebff8466ead8f9bb4c0f00037a107cbf842c4 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 5 Nov 2018 03:32:06 -0500 Subject: Add pad closed issues view This view is routable from app//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 --- app/view/pad_closed.php | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 app/view/pad_closed.php (limited to 'app/view') diff --git a/app/view/pad_closed.php b/app/view/pad_closed.php new file mode 100644 index 0000000..19864cd --- /dev/null +++ b/app/view/pad_closed.php @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + +
+
+
+
+

+ + name?> + + + View open issues + +

+
+
+
+ +
+ + + + +
+
+
+ + + + -- cgit v1.2.3 From a78cfba0975eaa45540edca95835f302cbb86cef Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 5 Nov 2018 03:45:48 -0500 Subject: Add link to closed issues view Signed-off-by: Malf Furious --- app/view/pad.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'app/view') diff --git a/app/view/pad.php b/app/view/pad.php index a9c8508..bf626bf 100644 --- a/app/view/pad.php +++ b/app/view/pad.php @@ -42,9 +42,15 @@ require_once "view/issue.php"; name?> - +
+ + + + View closed issues + +
-- cgit v1.2.3 From daa4f7a34e23d18e23d34d4becca752635b2ea38 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 5 Nov 2018 04:21:49 -0500 Subject: Only display 'iss-mesg-add' form for open issues Disallow posting to closed issues. This is a temporary soultion and will likely be reverted in the future. The main reason this is being done now is because this form, as written, depends on an open issue state. To aid diff comprehension, note that most lines are only indented one level, the code area affected is wrapped in a PHP if. Note that form submissions are still allowed for closed issues. This commit only disable the _displaying_ of the form. Signed-off-by: Malf Furious --- app/view/issue.php | 86 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 44 insertions(+), 42 deletions(-) (limited to 'app/view') diff --git a/app/view/issue.php b/app/view/issue.php index 5f1c518..6edf7cf 100644 --- a/app/view/issue.php +++ b/app/view/issue.php @@ -109,53 +109,55 @@ require_once "class/issue.class.php"; -
- - guid )?> - - -
- - - - - - - -
- -
-
- + isOpen()) { ?> + + + guid )?> + + +
+ + + + + + + +
- + - - -
- -
+ getParent()->getParent()->getMembers() as $memb) { ?> + + + + + + + - -
+ + +
-- cgit v1.2.3