summaryrefslogtreecommitdiffstats
path: root/web/template/pkgreq_results.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-07-04 10:40:29 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-07-04 11:10:37 +0200
commit8a465182babccec10b8e789dbc871db3beb9bec5 (patch)
tree135ca7f54ec901fc498c77dbfab9486df5080a9b /web/template/pkgreq_results.php
parent61d70c1fa5f0ed9cfe4708a4630fbf959da2d781 (diff)
downloadaur-8a465182babccec10b8e789dbc871db3beb9bec5.tar.gz
aur-8a465182babccec10b8e789dbc871db3beb9bec5.tar.xz
Allow for selecting a reason when closing a request
When closing a package request, Trusted Users can now pick a reason ("Accepted" or "Rejected"). This allows for marking a request as accepted, even if the corresponding package base has already been deleted. Also, the notification email now always explicitly states whether a request has been accepted or closed in the message body. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkgreq_results.php')
-rw-r--r--web/template/pkgreq_results.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/web/template/pkgreq_results.php b/web/template/pkgreq_results.php
index 9cd6faf0..b5e1177b 100644
--- a/web/template/pkgreq_results.php
+++ b/web/template/pkgreq_results.php
@@ -51,8 +51,10 @@
<?php if ($row['BaseID']): ?>
<?php if ($row['Type'] == 'deletion'): ?>
<a href="<?= get_pkgbase_uri($row['Name']) ?>delete/?via=<?= intval($row['ID']) ?>"><?= __('Accept') ?></a>
+ <br/ >
<?php elseif ($row['Type'] == 'merge'): ?>
<a href="<?= get_pkgbase_uri($row['Name']) ?>merge/?into=<?= urlencode($row['MergeInto']) ?>&via=<?= intval($row['ID']) ?>"><?= __('Accept') ?></a>
+ <br />
<?php elseif ($row['Type'] == 'orphan'): ?>
<form action="<?= get_pkgbase_uri($row['Name']) . 'disown/'; ?>" method="post">
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
@@ -61,17 +63,7 @@
</form>
<?php endif; ?>
<?php endif; ?>
- <form action="<?= get_uri('/pkgbase/'); ?>" method="post">
- <fieldset>
- <input type="hidden" name="IDs[<?= $row['BaseID'] ?>]" value="1" />
- <input type="hidden" name="ID" value="<?= $row['BaseID'] ?>" />
- <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
- <input type="hidden" name="reqid" value="<?= $row['ID'] ?>" />
- <div>
- <input type="submit" class="button text-button" name="do_CloseRequest" value="<?= __("Close") ?>" />
- </div>
- </fieldset>
- </form>
+ <a href="<?= get_pkgreq_route() . '/' . intval($row['ID']) ?>/close/"><?= __('Close') ?></a>
</td>
<?php else: ?>
<td><?= __("Closed") ?></td>