aurweb/web/template/account_details.php
Lukas Fleischer 6844f6c1d2 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>
2013-08-22 17:43:13 +02:00

61 lines
1.7 KiB
PHP

<table class="arch-bio-entry">
<tr>
<td>
<h3><?= htmlspecialchars($row["Username"], ENT_QUOTES) ?></h3>
<table class="bio">
<tr>
<th><?= __("Username") . ":" ?></th>
<td><?= $row["Username"] ?></td>
</tr>
<tr>
<th><?= __("Account Type") . ":" ?></th>
<td>
<?php
if ($row["AccountType"] == "User") {
print __("User");
} elseif ($row["AccountType"] == "Trusted User") {
print __("Trusted User");
} elseif ($row["AccountType"] == "Developer") {
print __("Developer");
}
?>
</td>
</tr>
<tr>
<th><?= __("Email Address") . ":" ?></th>
<td><a href="mailto:<?= htmlspecialchars($row["Email"], ENT_QUOTES) ?>"><?= htmlspecialchars($row["Email"], ENT_QUOTES) ?></a></td>
</tr>
<tr>
<th><?= __("Real Name") . ":" ?></th>
<td><?= htmlspecialchars($row["RealName"], ENT_QUOTES) ?></td>
</tr>
<tr>
<th><?= __("IRC Nick") . ":" ?></th>
<td><?= htmlspecialchars($row["IRCNick"], ENT_QUOTES) ?></td>
</tr>
<tr>
<th><?= __("PGP Key Fingerprint") . ":" ?></th>
<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"); ?>
</td>
</tr>
<tr>
<th>Links:</th>
<td>
<a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&amp;SeB=m"><?= __("View this user's packages") ?></a>
</td>
</tr>
</table>
</td>
</tr>
</table>