diff options
Diffstat (limited to '')
-rw-r--r-- | app/view/common/topp.view.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/app/view/common/topp.view.php b/app/view/common/topp.view.php index 05e4862..460887d 100644 --- a/app/view/common/topp.view.php +++ b/app/view/common/topp.view.php @@ -14,7 +14,20 @@ </div> <div class="collapse navbar-collapse" id="scrottnav"> - <p class="navbar-text navbar-right"><i>Not Logged In </i></p> + <?php if (!$mod->getCurrentUser()) { ?> + <p class="navbar-text navbar-right"><i>Not Logged In </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->getCurrentUserGlyphicon()?>"></span> <?=$mod->getCurrentUser()->getDisplayName()?> <span class="caret"></span> + </a> + <ul class="dropdown-menu"> + <li><a href="<?=$mod->ar()?>/logout">Log out</a></li> + </ul> + </li> + </ul> + <?php } ?> </div> </div> |