From ed17d0f69e3f8f88ed8f23ad12543022636fd87a Mon Sep 17 00:00:00 2001
From: simo
Date: Fri, 6 May 2005 03:58:26 +0000
Subject: Added vote button to detail page (bug#2638) X's only show up if user
can delete comment
---
web/html/packages.php | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
(limited to 'web/html')
diff --git a/web/html/packages.php b/web/html/packages.php
index 210f1354..604ba72c 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -372,7 +372,11 @@ if (isset($_REQUEST["do_Flag"])) {
print "
\n";
}
- pkgsearch_results_link();
+ if (isset($_REQUEST["ID"])) {
+ pkgdetails_link($_REQUEST["ID"]);
+ } else {
+ pkgsearch_results_link();
+ }
}
@@ -425,7 +429,11 @@ if (isset($_REQUEST["do_Flag"])) {
print "\n";
}
- pkgsearch_results_link();
+ if (isset($_REQUEST["ID"])) {
+ pkgdetails_link($_REQUEST["ID"]);
+ } else {
+ pkgsearch_results_link();
+ }
}
@@ -436,10 +444,11 @@ if (isset($_REQUEST["do_Flag"])) {
print __("Error trying to retrieve package details.")."
\n";
} else {
- package_details($_REQUEST["ID"]);
+ package_details($_REQUEST["ID"], $_COOKIE["AURSID"]);
}
print "
\n";
+ # FIXME: If someone hits the detail page's vote button, this link dies
pkgsearch_results_link();
--
cgit v1.2.3-24-g4f1b