diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-04 10:40:29 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-04 11:10:37 +0200 |
commit | 8a465182babccec10b8e789dbc871db3beb9bec5 (patch) | |
tree | 135ca7f54ec901fc498c77dbfab9486df5080a9b /web/html/pkgreq.php | |
parent | 61d70c1fa5f0ed9cfe4708a4630fbf959da2d781 (diff) | |
download | aur-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/html/pkgreq.php')
-rw-r--r-- | web/html/pkgreq.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/web/html/pkgreq.php b/web/html/pkgreq.php index 4b7d6cff..9dec1f6e 100644 --- a/web/html/pkgreq.php +++ b/web/html/pkgreq.php @@ -8,7 +8,14 @@ include_once("pkgfuncs.inc.php"); set_lang(); check_sid(); -if (!isset($base_id)) { +if (isset($base_id)) { + html_header(__("File Request")); + include('pkgreq_form.php'); +} elseif (isset($pkgreq_id)) { + html_header(__("Close Request")); + $pkgbase_name = pkgreq_get_pkgbase_name($pkgreq_id); + include('pkgreq_close_form.php'); +} else { if (!check_user_privileges()) { header('Location: /'); exit(); @@ -63,9 +70,6 @@ if (!isset($base_id)) { html_header(__("Requests")); include('pkgreq_results.php'); -} else { - html_header(__("File Request")); - include('pkgreq_form.php'); } html_footer(AUR_VERSION); |