From 4679e8ef5d2f998abe5b29fe8c1af9d6b3143b6a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 17 Jul 2012 21:10:04 +0200 Subject: Move package actions to the action box Note that this currently only works if the virtual path feature is enabled. If you don't use virtual paths, these will still be displayed as buttons below the package details listing. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 1 + web/template/actions_form.php | 2 ++ web/template/pkg_details.php | 17 +++++++++++++++++ 3 files changed, 20 insertions(+) (limited to 'web') diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 06106170..1351e725 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -368,6 +368,7 @@ function pkgname_is_blacklisted($name, $dbh=NULL) { # function package_details($id=0, $SID="", $dbh=NULL) { global $AUR_LOCATION; + global $USE_VIRTUAL_URLS; if(!$dbh) { $dbh = db_connect(); diff --git a/web/template/actions_form.php b/web/template/actions_form.php index 045022d8..c58b3ecf 100644 --- a/web/template/actions_form.php +++ b/web/template/actions_form.php @@ -5,6 +5,7 @@ + " /> @@ -22,6 +23,7 @@ " /> + " /> diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 6e19b3b0..7542ea81 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -37,6 +37,23 @@ $sources = package_sources($row["ID"]);
  • + + +
  • + +
  • + + +
  • + +
  • + + +
  • + +
  • + + -- cgit v1.2.3-24-g4f1b