Browse Source

Added email to user list.

Alan Lam 8 years ago
parent
commit
01e62c2d5f
1 changed files with 7 additions and 2 deletions
  1. 7 2
      views/users.php

+ 7 - 2
views/users.php

@@ -83,7 +83,7 @@
 			<thead>
 				<tr>
 					<th>ID</th>
-					<th>Name</th>
+					<th>Name / Email</th>
 					<th>Level</th>
 					<th>Age</th>
 					<th>Score</th>
@@ -93,13 +93,18 @@
 			<tbody>
 			<?php
 			foreach($users as $user) {
+				$activated = "<i class=\"fas fa-fw fa-question-circle text-warning\" data-toggle=\"tooltip\" title=\"Unverified\"></i>";
+				if($user->activated) {
+					$activated = "<i class=\"fas fa-fw fa-check-circle text-primary\" data-toggle=\"tooltip\" title=\"Verified\"></i>";
+				}
 				?>
 				<tr>
 					<td class="text-right align-middle">
 						<?=$user->id?>
 					</td>
 					<td class="align-middle">
-						<a href="/account/users/<?=$user->id?>"><?=htmlspecialchars($user->getDisplayName())?></a>
+						<a href="/account/users/<?=$user->id?>"><?=htmlspecialchars($user->getDisplayName())?></a><br />
+						<small><?=htmlspecialchars($user->email)?> <?=$activated?></small>
 					</td>
 					<td class="text-center align-middle">
 						<span class="badge badge-<?=$user->getLevelClass()?>"><?=htmlspecialchars($user->getLevelText())?></span>