mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Display number of pending requests in actions box
For packages with pending package requests, display the number of requests above the "File Request" link. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
7f29756196
commit
111d836912
4 changed files with 10 additions and 2 deletions
|
@ -106,6 +106,7 @@ $sources = pkg_sources($row["ID"]);
|
|||
</form>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li><span class="flagged"><?php if ($row["RequestCount"] > 0) { echo _n('%d pending request', '%d pending requests', $row["RequestCount"]); } ?></span></li>
|
||||
<li><a href="<?= get_pkgbase_uri($row['BaseName']) . 'request/'; ?>"><?= __('File Request'); ?></a></li>
|
||||
<?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
|
||||
<li><a href="<?= get_pkgbase_uri($row['BaseName']) . 'delete/'; ?>"><?= __('Delete Package'); ?></a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue