summaryrefslogtreecommitdiffstats
path: root/app/view/common/topp.view.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/view/common/topp.view.php20
1 files changed, 19 insertions, 1 deletions
diff --git a/app/view/common/topp.view.php b/app/view/common/topp.view.php
index 05e4862..40ad3fe 100644
--- a/app/view/common/topp.view.php
+++ b/app/view/common/topp.view.php
@@ -1,5 +1,9 @@
<?php include "view/master/topp.view.php"; ?>
+<?php if ($mod->getCurrentUser()) { ?>
+ <?php include "view/common/setting.modal.view.php"; ?>
+<?php } ?>
+
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
@@ -14,7 +18,21 @@
</div>
<div class="collapse navbar-collapse" id="scrottnav">
- <p class="navbar-text navbar-right"><i>Not Logged In&nbsp;</i></p>
+ <?php if (!$mod->getCurrentUser()) { ?>
+ <p class="navbar-text navbar-right"><i>Not Logged In&nbsp;</i></p>
+ <?php } else { ?>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
+ <span class="<?=$mod->getCurrentUser()->getGlyphicon()?>"></span> <?=$mod->getCurrentUser()->getDisplayName()?> <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="#" data-toggle="modal" data-target="#settingModal">Settings</a></li>
+ <li><a href="<?=$mod->ar()?>/logout">Log out</a></li>
+ </ul>
+ </li>
+ </ul>
+ <?php } ?>
</div>
</div>