summaryrefslogtreecommitdiffstats
path: root/web/template/account_details.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2013-08-04 14:19:32 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2013-08-22 17:43:13 +0200
commit6844f6c1d2965cd5ec2ad72c887baeed9517c246 (patch)
tree73f5a43e62c3fa5dec7d0a13c0f12aed41215847 /web/template/account_details.php
parent6ecfe12ce21f3c1a1a4f93cc35729a302348c058 (diff)
downloadaur-6844f6c1d2965cd5ec2ad72c887baeed9517c246.tar.gz
aur-6844f6c1d2965cd5ec2ad72c887baeed9517c246.tar.xz
Allow for setting an account's inactivity status
This adds a field to the users table and corresponding fields to the account edit and display forms that allow for setting an (in-)activity status. This might turn out to be useful if a user is on vacation and can not respond to update/orphan/deletion requests. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/account_details.php')
-rw-r--r--web/template/account_details.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/template/account_details.php b/web/template/account_details.php
index fdebfb33..02ed32b9 100644
--- a/web/template/account_details.php
+++ b/web/template/account_details.php
@@ -38,6 +38,12 @@
<td><?= html_format_pgp_fingerprint($row["PGPKey"]) ?></td>
</tr>
<tr>
+ <th><?= __("Status") . ":" ?></th>
+ <td>
+ <?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?>
+ </td>
+ </tr>
+ <tr>
<th><?= __("Last Voted") . ":" ?></th>
<td>
<?= $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>