summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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">