From dbf1d474f7eba3dd0911aa47626e58ccf8057a52 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Thu, 5 Sep 2013 20:13:42 -0400 Subject: 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 3bc951e3d87eaf692a7e47cf16a28d838c7cb2bd Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/html/index.php | 6 ++++++ web/template/pkg_details.php | 34 +++++++++++++++++----------------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/web/html/index.php b/web/html/index.php index be6c98d..ccc94d2 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -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; diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 0484924..bc20a22 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -89,24 +89,24 @@ $sources = package_sources($row["ID"]);
  • + + +
  • +
    + + +
    +
  • + +
  • +
    + + +
    +
  • + - -
    -
    - - - -
    -

    - - " /> - - " /> - -

    -
    - -- cgit v1.2.3-70-g09d2