summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-12 23:38:18 -0500
committerMalf Furious <m@lfurio.us>2016-03-27 20:16:32 -0400
commit2936f0d151fb52bd2649edc37abd2e1d559d1f0f (patch)
tree0fd96caebbf3727038b9750d21a84c492b53f457 /app/class
parent587bdef47abbf4545508cac95a0495be0d5ddaa5 (diff)
downloadscrott-2936f0d151fb52bd2649edc37abd2e1d559d1f0f.tar.gz
scrott-2936f0d151fb52bd2649edc37abd2e1d559d1f0f.zip
Move getUserGlyphicon function from common model into user class
Diffstat (limited to 'app/class')
-rw-r--r--app/class/user.class.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/class/user.class.php b/app/class/user.class.php
index 7d8519e..f1f7ff1 100644
--- a/app/class/user.class.php
+++ b/app/class/user.class.php
@@ -160,6 +160,17 @@ class User extends Object
return $this->name;
}
+
+ /*
+ * Get the glyphicon to use for this user
+ */
+ function getGlyphicon()
+ {
+ if ($this->admin)
+ return "glyphicon glyphicon-sunglasses";
+
+ return "glyphicon glyphicon-user";
+ }
}
?>