From d0da4199aeb0e032cb700c0a1fa19fcefcec28e6 Mon Sep 17 00:00:00 2001 From: swiergot Date: Mon, 21 Aug 2006 21:06:02 +0000 Subject: Actually additional code was needed to close #3201 with a clear conscience. --- web/lib/pkgfuncs.inc | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index bfe6e03..6fd8ad9 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -328,6 +328,11 @@ function package_details($id=0, $SID="") { print $maintainer . ""; } print "\n"; + + print "\n"; + print " ".__("Votes").": "; + print $row["NumVotes"] . ""; + print "\n"; print "\n"; print " "; @@ -477,18 +482,36 @@ function package_details($id=0, $SID="") { print " value='".__("Unflag Safe")."' title='".__("Unflag Package Safe To Use")."'>"; } } + if ($row["OutOfDate"] == 0) + { print "\n"; + } + else + { print "\n"; - + } + + if ($row["AURMaintainerUID"] == 0 && $row["MaintainerUID"] == 0) + { print "\n"; + } + + if ($row["MaintainerUID"] == uid_from_sid($SID)) + { print "\n"; + } + if ($row["MaintainerUID"] == uid_from_sid($SID) || + account_from_sid($SID) == "Trusted User" || + account_from_sid($SID) == "Developer") + { print "\n"; + } print "\n"; print "
\n"; -- cgit v1.2.3-54-g00ecf