Highlight maintained apps/versions in the menu

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-19 23:51:23 +00:00
committed by WineHQ
parent e176c0a9c7
commit 4adcb4ad85

View File

@@ -29,11 +29,17 @@ function global_sidebar_login() {
{ {
$oApp = new application($appId); $oApp = new application($appId);
if($superMaintainer) if($superMaintainer)
$g->addmisc($oApp->objectMakeLink()."*", "center"); $g->add($oApp->sName."*", $oApp->objectMakeUrl(),"center");
else else
$g->addmisc(version::fullNameLink($versionId), "center"); {
$oVersion = new version($versionId);
$g->add(version::fullName($versionId),
$oVersion->objectMakeUrl(), "center");
} }
} }
}
/* Display the user's rejected applications/versions */
$iAppsRejected = application::objectGetEntriesCount(true, true) + $iAppsRejected = application::objectGetEntriesCount(true, true) +
version::objectGetEntriesCount(true, true); version::objectGetEntriesCount(true, true);
if($iAppsRejected && !$_SESSION['current']->hasPriv("admin")) if($iAppsRejected && !$_SESSION['current']->hasPriv("admin"))