aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 10:16:39 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 10:18:10 +0200
commitee1add20e2861e95de0b6b3b621f0a8e277f2a02 (patch)
tree181a3532501db013263c4456578b62d5442cc6c7 /models
parenta6f29034d18d5a5ce48d879845cce3544b0f8a3c (diff)
downloadnowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.tar
nowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.tar.gz
nowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.zip
feat: Proper list page layout and export user logo logic to class
Diffstat (limited to 'models')
-rw-r--r--models/user.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/models/user.php b/models/user.php
index 04f5a83..9b76f37 100644
--- a/models/user.php
+++ b/models/user.php
@@ -46,4 +46,15 @@ class User extends Table {
"WHERE AuthorUID = \"$this->UID\""
);
}
+
+ function icon() {
+ global $VIEWS_DIR;
+ // https://tabler.io/icons
+ if ($this->Role === 'User') {
+ include $VIEWS_DIR . '/img/user.svg';
+ }
+ else {
+ include $VIEWS_DIR . '/img/user-star.svg';
+ }
+ }
}