summaryrefslogtreecommitdiffstats
path: root/app/view/common/topp.view.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-27 20:19:10 -0400
committerMalf Furious <m@lfurio.us>2016-03-27 20:19:10 -0400
commit4d69a5ecca13bbda5843c176e1bc4df514f079d7 (patch)
treef15454061b94928181c0a36cd48f0979b9dfc943 /app/view/common/topp.view.php
parent7a2672164a73bb011a3d930df52c0643ee18457d (diff)
parente55a32c647cab450c2a6c6a3156c798dc0f70256 (diff)
downloadscrott-4d69a5ecca13bbda5843c176e1bc4df514f079d7.tar.gz
scrott-4d69a5ecca13bbda5843c176e1bc4df514f079d7.zip
Merge branch 'feature/setting-modal' into dev
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>