summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-19 18:24:43 -0400
committerMalf Furious <m@lfurio.us>2018-09-19 18:24:43 -0400
commit5c6ca9e4cf6d26f72c3f6d4ec86bb703aae1ea73 (patch)
tree5ca9590f19b53ddc62829e0ef1a730160f69871a
parent5f187a7602d6ceeac9dbd81e84fbfc13f0b73ea9 (diff)
downloadscrott-5c6ca9e4cf6d26f72c3f6d4ec86bb703aae1ea73.tar.gz
scrott-5c6ca9e4cf6d26f72c3f6d4ec86bb703aae1ea73.zip
stdpage: Update user button appearance
Removed placholder text and now displaying the logged-in user's display name. This is accopanied by the user icon and (conditionally) the 'cool' sunglasses icon for admins. This is similar, but not identical, to the markup of my old archived code I'm clearing out.
-rw-r--r--app/view/stdpage.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/view/stdpage.php b/app/view/stdpage.php
index 2eb2c2c..064f6e7 100644
--- a/app/view/stdpage.php
+++ b/app/view/stdpage.php
@@ -222,7 +222,14 @@ require_once "view/settings.php";
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
- User Button <span class="caret"></span>
+ <?php if (\user::getCurrent()->admin == 1) { ?>
+ <span class="glyphicon glyphicon-sunglasses"></span>
+ <?php } ?>
+
+ <span class="glyphicon glyphicon-user"></span>
+ &nbsp;
+ <?=\user::getCurrent()->getDisplayName()?>
+ <span class="caret"></span>
</a>
<ul class="dropdown-menu">