diff --git a/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc b/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc index 99dba9f..ec57579 100644 --- a/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc @@ -21,7 +21,14 @@ require_once("$default->fileSystemRoot/lib/users/User.inc"); */ function renderPendingCollaborationDocuments($aPendingDocumentList) { global $default; - $sToRender = "\t\n"; + + if (count($aPendingDocumentList) > 0) { + $sBgColor = "#9D9D7F"; + } else { + $sBgColor = "#CECEBF"; + } + $sToRender = "\t\n"; + $sToRender .= "\t\tPending Documents\n"; $sToRender .= "\t\n"; for ($i = 0; $i < count($aPendingDocumentList); $i++) { @@ -40,7 +47,12 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) { */ function renderCheckedOutDocuments($aCheckedOutDocumentList) { global $default; - $sToRender = "\t\n"; + if (count($aCheckedOutDocumentList) > 0) { + $sBgColor = "#9D9D7F"; + } else { + $sBgColor = "#CECEBF"; + } + $sToRender = "\t\n"; $sToRender .= "\t\tChecked Out Documents\n"; $sToRender .= "\t\n"; @@ -72,7 +84,12 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) { */ function renderSubscriptionAlerts($aSubscriptionAlertList) { global $default; - $sToRender = "\t\n"; + if (count($aSubscriptionAlertList) > 0) { + $sBgColor = "#9D9D7F"; + } else { + $sBgColor = "#CECEBF"; + } + $sToRender = "\t\n"; $sToRender .= "\t\tSubscription Alerts\n"; $sToRender .= "\t\n"; for ($i = 0; $i < count($aSubscriptionAlertList); $i++) { @@ -88,7 +105,7 @@ function renderSubscriptionAlerts($aSubscriptionAlertList) { */ function renderQuickLinks($aQuickLinks) { global $default; - $sToRender .= "\t\n"; + $sToRender .= "\t\n"; $sToRender .= "\t\tQuick Links\n"; $sToRender .= "\t\n"; for ($i = 0; $i < count($aQuickLinks); $i++) {