diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-04 12:28:12 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-04 12:28:12 +0200 |
commit | 111d836912f403caf82abe6f2ff6c0fee9f3f6b3 (patch) | |
tree | 3f108c08a6408683366aa07173f8a65c2e1aa460 /web/template/pkg_details.php | |
parent | 7f29756196ce8743c474bb035d234a72af5381aa (diff) |
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>
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r-- | web/template/pkg_details.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 065057a..6f39514 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -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> |