Show crown next to Admins' names

This commit is contained in:
Michał Gdula 2022-09-14 18:59:02 +00:00
parent dec15d7b63
commit 248154f37d
2 changed files with 6 additions and 1 deletions

View file

@ -173,7 +173,11 @@
<div>
<?php
// User
echo "<p>Author: ".$image_author."</p>";
if ($user_info->is_admin($image['author'])) {
echo "<p>Author: ".$image_author."<img class='svg' style='margin: 0 0 0.1rem 0.2rem;' src='assets/icons/crown-simple.svg'></p>";
} else {
echo "<p>Author: ".$image_author."</p>";
}
// Image ID
echo "<p>ID: ".$image['id']."</p>";