mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Highlight package requests after 14 days
Automatically highlight package requests after a configurable period of time. Defaults to 14 days. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
fc1db28c9b
commit
d8dbad0c3e
2 changed files with 4 additions and 1 deletions
|
@ -62,3 +62,6 @@ $MAX_RPC_RESULTS = 5000;
|
||||||
|
|
||||||
# Mailing list to send package request notifications to.
|
# Mailing list to send package request notifications to.
|
||||||
$AUR_REQUEST_ML = "aur-general@archlinux.org";
|
$AUR_REQUEST_ML = "aur-general@archlinux.org";
|
||||||
|
|
||||||
|
# Time to wait until a package request is due.
|
||||||
|
$REQUEST_IDLE_TIME = 60 * 60 * 24 * 14;
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<td>
|
<td>
|
||||||
<a href="<?= get_uri('/account/') . htmlspecialchars($row['User'], ENT_QUOTES) ?>" title="<?= __('View account information for %s', htmlspecialchars($row['User'])) ?>"><?= htmlspecialchars($row['User']) ?></a>
|
<a href="<?= get_uri('/account/') . htmlspecialchars($row['User'], ENT_QUOTES) ?>" title="<?= __('View account information for %s', htmlspecialchars($row['User'])) ?>"><?= htmlspecialchars($row['User']) ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td><?= gmdate("Y-m-d H:i", intval($row['RequestTS'])) ?></td>
|
<td<?php if (time() - intval($row['RequestTS']) > $REQUEST_IDLE_TIME): ?> class="flagged"<?php endif; ?>><?= gmdate("Y-m-d H:i", intval($row['RequestTS'])) ?></td>
|
||||||
<?php if ($row['Status'] == 0): ?>
|
<?php if ($row['Status'] == 0): ?>
|
||||||
<td>
|
<td>
|
||||||
<form action="<?= get_uri('/pkgbase/'); ?>" method="post">
|
<form action="<?= get_uri('/pkgbase/'); ?>" method="post">
|
||||||
|
|
Loading…
Add table
Reference in a new issue