mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Allow for closing package requests
This allows Trusted Users to close package requests via the request list. Also, entries are now sorted such that open requests are shown before closed requests. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
8260111bcc
commit
fc1db28c9b
7 changed files with 73 additions and 17 deletions
|
@ -21,6 +21,7 @@ $ROUTES = array(
|
|||
|
||||
$PKG_PATH = '/packages';
|
||||
$PKGBASE_PATH = '/pkgbase';
|
||||
$PKGREQ_PATH = '/requests';
|
||||
$USER_PATH = '/account';
|
||||
|
||||
function get_route($path) {
|
||||
|
@ -55,6 +56,11 @@ function get_pkgbase_route() {
|
|||
return $PKGBASE_PATH;
|
||||
}
|
||||
|
||||
function get_pkgreq_route() {
|
||||
global $PKGREQ_PATH;
|
||||
return $PKGREQ_PATH;
|
||||
}
|
||||
|
||||
function get_pkg_uri($pkgname) {
|
||||
global $USE_VIRTUAL_URLS;
|
||||
global $PKG_PATH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue