diff options
author | Malf Furious <m@lfurio.us> | 2018-10-22 23:05:56 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-10-22 23:05:56 -0400 |
commit | bf257897042321e91f7489d0a43f8d35aa3006d7 (patch) | |
tree | 5b5a8179f50866b7ae3198e2ab4fc516aca1f881 | |
parent | 81870ad1630e578b61ddcb4c06e9e7687fdd3673 (diff) | |
download | scrott-bf257897042321e91f7489d0a43f8d35aa3006d7.tar.gz scrott-bf257897042321e91f7489d0a43f8d35aa3006d7.zip |
stdpage: Add 'New Issue' option to navbar
When viewing a pad, offer the 'New Issue' option under the additions
menu in the navbar. Will will display the just-added new issue modal,
for the user to open a new issue on the first stage of the pad being
viewed.
Signed-off-by: Malf Furious <m@lfurio.us>
-rw-r--r-- | app/view/stdpage.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/view/stdpage.php b/app/view/stdpage.php index 95fb530..99cbb25 100644 --- a/app/view/stdpage.php +++ b/app/view/stdpage.php @@ -180,6 +180,10 @@ require_once "view/settings.php"; <?=\settings\settings()?> <?=\datamods\newGroup()?> <?=\datamods\newPad()?> + + <?php if (getPageObj()->objtype == "pad") { ?> + <?=\datamods\newIssue()?> + <?php } ?> <?php } ?> <nav class="navbar navbar-inverse navbar-fixed-top"> @@ -225,6 +229,11 @@ require_once "view/settings.php"; <ul class="dropdown-menu"> <li><a href="#" data-toggle="modal" data-target="#newGroupModal">New Group</a></li> <li><a href="#" data-toggle="modal" data-target="#newPadModal">New Pad</a></li> + + <?php if (getPageObj()->objtype == "pad") { ?> + <li class="divider"></li> + <li><a href="#" data-toggle="modal" data-target="#newIssueModal">New Issue</a></li> + <?php } ?> </ul> </li> </ul> |