mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Convert adopt/disown package action link to form
* Changes adopting/disowning packages to use GET instead of POST
* Uses CSS to make form submit button look like a link
* Complements commit 3bc951e3d8
Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
77f1b264ca
commit
dbf1d474f7
2 changed files with 23 additions and 17 deletions
|
@ -25,6 +25,12 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
|
|||
/* TODO: Remove support for legacy URIs and move these
|
||||
* actions to separate modules. */
|
||||
switch ($tokens[3]) {
|
||||
case "adopt":
|
||||
$_POST['do_Adopt'] = __('Adopt');
|
||||
break;
|
||||
case "disown":
|
||||
$_POST['do_Disown'] = __('Disown');
|
||||
break;
|
||||
case "vote":
|
||||
$_POST['do_Vote'] = __('Vote');
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue