summaryrefslogtreecommitdiffstats
path: root/app/view
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-06-11 02:02:41 -0400
committerMalf Furious <m@lfurio.us>2016-06-11 02:02:41 -0400
commitcfb3d059fa1e11bc71b93e21fa3208305d701de7 (patch)
tree920fa5130181fae2a2f042d93c763593f9ac020c /app/view
parent78667b156328dfe500330aa3bf83bf84e3116948 (diff)
downloadscrott-cfb3d059fa1e11bc71b93e21fa3208305d701de7.tar.gz
scrott-cfb3d059fa1e11bc71b93e21fa3208305d701de7.zip
Add navbar dropdown for selecting group page to view
Diffstat (limited to 'app/view')
-rw-r--r--app/view/common/topp.view.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/view/common/topp.view.php b/app/view/common/topp.view.php
index 9ec40fa..487cc6d 100644
--- a/app/view/common/topp.view.php
+++ b/app/view/common/topp.view.php
@@ -43,6 +43,18 @@
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
+ <?=(isset($mod->obj) ? $mod->obj->name : "<i>Dashboard</i>")?> <span class="caret"></span>
+ </a>
+
+ <ul class="dropdown-menu">
+ <?php foreach ($mod->getCurrentUser()->getGroups() as $group) { ?>
+ <li><a href="<?=$mod->ar()?>/<?=$group->guid?>"><?=$group->name?></a></li>
+ <?php } ?>
+ </ul>
+ </li>
+
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-plus"></span> <span class="caret"></span>
</a>
<ul class="dropdown-menu">