summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorsimo <simo>2005-05-06 05:58:26 +0200
committersimo <simo>2005-05-06 05:58:26 +0200
commited17d0f69e3f8f88ed8f23ad12543022636fd87a (patch)
tree1d9b6eecf3f6694a116754178af3e7f60aa6a5af /web/html/packages.php
parent90eadf0252fcb7358b7e915bae8dc57e70c65750 (diff)
downloadaur-ed17d0f69e3f8f88ed8f23ad12543022636fd87a.tar.gz
aur-ed17d0f69e3f8f88ed8f23ad12543022636fd87a.tar.xz
Added vote button to detail page (bug#2638)
X's only show up if user can delete comment
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php15
1 files changed, 12 insertions, 3 deletions
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 "</p>\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 "</p>\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.")."<br />\n";
} else {
- package_details($_REQUEST["ID"]);
+ package_details($_REQUEST["ID"], $_COOKIE["AURSID"]);
}
print "<br />\n";
+ # FIXME: If someone hits the detail page's vote button, this link dies
pkgsearch_results_link();