mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Show user's last login on the account details page
This is only visible to Trusted Users and developers. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
8c07c091e8
commit
69557a7ca7
1 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,14 @@
|
||||||
<?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?>
|
<?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
||||||
|
<tr>
|
||||||
|
<th><?= __("Last Login") . ":" ?></th>
|
||||||
|
<td>
|
||||||
|
<?= $row["LastLogin"] ? date("Y-m-d", $row["LastLogin"]) : __("Never"); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endif; ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Links:</th>
|
<th>Links:</th>
|
||||||
<td><ul>
|
<td><ul>
|
||||||
|
|
Loading…
Add table
Reference in a new issue