summaryrefslogtreecommitdiffstats
path: root/app/view/stdpage.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-08 08:08:22 -0400
committerMalf Furious <m@lfurio.us>2018-09-08 08:08:22 -0400
commit54782f88a2987ef2d0a5a530cfd0f027c38be396 (patch)
treed808e1bfc65437ac7de95cfbf0b8b2687273952e /app/view/stdpage.php
parent5aa9a93c6e399d2a1d91c408502b9b5a191f61c5 (diff)
downloadscrott-54782f88a2987ef2d0a5a530cfd0f027c38be396.tar.gz
scrott-54782f88a2987ef2d0a5a530cfd0f027c38be396.zip
Add 'New Pad' modal
Diffstat (limited to 'app/view/stdpage.php')
-rw-r--r--app/view/stdpage.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/view/stdpage.php b/app/view/stdpage.php
index 478c414..1629dbf 100644
--- a/app/view/stdpage.php
+++ b/app/view/stdpage.php
@@ -164,7 +164,11 @@ require_once "view/datamods.php";
<?php function nav() : void { ?>
<?=about()?>
- <?=\datamods\newGroup()?>
+
+ <?php if (\user::getCurrent()) { ?>
+ <?=\datamods\newGroup()?>
+ <?=\datamods\newPad()?>
+ <?php } ?>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
@@ -208,6 +212,7 @@ require_once "view/datamods.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>
</ul>
</li>
</ul>