From 71b5b9e6b7e92fe1f2c0c49f47af1c1255f41e24 Mon Sep 17 00:00:00 2001 From: pjmattal Date: Wed, 6 Apr 2005 02:54:11 +0000 Subject: many changes in prep for launch new doc page added changed AUR to community lower-cased unsupported fixed half of the bug with changing categories: categories now can't be changed for packages in community however they can still be changed out from under maintainers by joe users for unsupported packages debugged problem with package details not found when unsupported uploads were with Category 0 (changed default to 19) --- web/lib/aur.inc | 8 ++++---- web/lib/pkgfuncs.inc | 13 +++++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'web/lib') diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 361ab04d..793ef7c4 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -373,10 +373,10 @@ function html_header() { # XXX CSS help - a:link, a:visited, etc are defined, but I don't want to # use the defaults. Is this the way to override them? # - print "English "; - print "Español "; - print "Deutsch "; - print "Français"; + #print "English "; + #print "Español "; + #print "Deutsch "; + #print "Français"; print " \n"; print " \n"; print " \n"; diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index a72b5f5a..bef63005 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -296,11 +296,16 @@ function package_details($id=0) { print "\n"; print "\n"; print " "; - $edit_cat = "".$row["Category"].""; - $edit_cat .= "  ("; - $edit_cat .= __("change category").")"; + if ($row["Location"] == "unsupported") { + $edit_cat = "".$row["Category"].""; + $edit_cat .= "  ("; + $edit_cat .= __("change category").")"; + } else { + $edit_cat = $row["Category"]; + } print $row["Location"]." :: ".$edit_cat.""; + print "\n"; print "\n"; print " ".__("Maintainer").": "; -- cgit v1.2.3-24-g4f1b