From b8310b2b74a068a046c35cd2838044979e838770 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 27 Mar 2003 15:46:43 +0000 Subject: [PATCH] updated presentation for no access message for category and document type browsing --- presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc index b78d219..1cd1023 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc @@ -91,7 +91,7 @@ function renderCategoryResults($aResults) { } else { // else the first entry is the category name, so display the documents in the category // with full paths - $sToRender .= renderDocumentList($aResults["documents"], "This category contains no documents", true); + $sToRender .= renderDocumentList($aResults, "This category contains no documents", "You don't have access to the documents in this category", true); } return $sToRender; } @@ -137,7 +137,7 @@ function renderDocumentTypeResults($aResults) { } else { // else the first entry is the document type name, so display the documents in the document type // with full paths - $sToRender .= renderDocumentList($aResults["documents"], "This document type contains no documents", true); + $sToRender .= renderDocumentList($aResults, "This document type contains no documents", "You don't have access to the documents in this document type", true); } return $sToRender; } @@ -157,19 +157,19 @@ function renderFolderResults($aResults) { } $sToRender .= " "; - $sToRender .= "" . renderDocumentList($aResults, "This folder contains no documents") . "\n"; + $sToRender .= "" . renderDocumentList($aResults, "This folder contains no documents", "You don't have access to the documents in this folder") . "\n"; return $sToRender; } -function renderDocumentList($aResults, $sNoDocumentsMessage, $bDisplayFullPath = false) { +function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessage, $bDisplayFullPath = false) { // loop through the files and display links if (count($aResults["documents"]) > 0) { for ($i=0; $i" . displayDocumentLink($aResults["documents"][$i], $bDisplayFullPath) . ""; } } else if ($aResults["accessDenied"]) { - $sToRender .= "You don't have access to the documents in this folder"; + $sToRender .= "$sNoPermissionMessage"; } else { $sToRender .= "$sNoDocumentsMessage"; } -- libgit2 0.21.4