summaryrefslogtreecommitdiffstats
path: root/web/html/pkgdel.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-06-25 10:43:41 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-06-25 11:36:15 +0200
commit959c61a77dd6a41bf82cc12b5eb873c9cfb0ffb8 (patch)
tree3c72832cba6fa9c1d715895f375a9645fc54b183 /web/html/pkgdel.php
parentd8dbad0c3ec28f531bb057fea8b76e3faa235da6 (diff)
downloadaur-959c61a77dd6a41bf82cc12b5eb873c9cfb0ffb8.tar.gz
aur-959c61a77dd6a41bf82cc12b5eb873c9cfb0ffb8.tar.xz
Add an accept button to the package request list
This button allows for accepting a request, disowning the affected package or redirecting to the package deletion page. The request is closed automatically when the action has been performed. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/pkgdel.php')
-rw-r--r--web/html/pkgdel.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/html/pkgdel.php b/web/html/pkgdel.php
index 39fe81a4..621c3c91 100644
--- a/web/html/pkgdel.php
+++ b/web/html/pkgdel.php
@@ -37,6 +37,9 @@ if ($atype == "Trusted User" || $atype == "Developer"): ?>
<input type="hidden" name="IDs[<?= $base_id ?>]" value="1" />
<input type="hidden" name="ID" value="<?= $base_id ?>" />
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
+ <?php if (isset($_GET['via'])): ?>
+ <input type="hidden" name="via" value="<?= intval($_GET['via']) ?>" />
+ <?php endif; ?>
<p><input type="checkbox" name="confirm_Delete" value="1" />
<?= __("Confirm package deletion") ?></p>
<p><input type="submit" class="button" name="do_Delete" value="<?= __("Delete") ?>" /></p>