[aur-dev] [PATCH 2/3] Show user's last login on the account details page

Lukas Fleischer archlinux at cryptocrack.de
Sun Feb 9 11:35:12 EST 2014


This is only visible to Trusted Users and developers.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/template/account_details.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/web/template/account_details.php b/web/template/account_details.php
index 5ba01d9..a4e20c9 100644
--- a/web/template/account_details.php
+++ b/web/template/account_details.php
@@ -43,6 +43,14 @@
 					<?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?>
 					</td>
 				</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>
 					<th>Links:</th>
 					<td><ul>
-- 
1.8.5.4



More information about the aur-dev mailing list