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:
canyonknight 2013-09-05 20:13:42 -04:00 committed by Lukas Fleischer
parent 77f1b264ca
commit dbf1d474f7
2 changed files with 23 additions and 17 deletions

View file

@ -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;