diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
index f28a403..2a99889 100644
--- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
+++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
@@ -9,10 +9,24 @@
* @package presentation.lookAndFeel.knowledgeTree.documentManager
*/
-function getDocumentPath($iFolderID, $sDocumentName) {
+function renderHeading($sHeading) {
global $default;
+ $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
+ $sColor = $default->siteMap->getSectionColour($sSectionName, "th");
+ $sToRender = "
\n";
+ $sToRender .= "| $sHeading |
\n";
+ $sToRender .= "
\n";
+ $sToRender .= "
\n";
+ $sToRender .= "
\n";
+ return $sToRender;
+}
+
+function getDocumentPath($iFolderID, $sDocumentName) {
+ global $default;
+ $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
+ $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td");
$sDocumentPath = displayFolderPathLink(Folder::getFolderPathAsArray($iFolderID), Folder::getFolderPathNamesAsArray($iFolderID), "$default->rootUrl/control.php?action=browse") . " > " . $sDocumentName;
- return "\n";
+ return "\n";
}
function getDocumentHistory($iDocumentID) {
@@ -33,7 +47,9 @@ function getDocumentHistory($iDocumentID) {
}
function getPage($iDocumentID, $iFolderID, $sDocumentName) {
- $sToRender = "\n";
+ global $default;
+ $sToRender = renderHeading("Document History");
+ $sToRender .= "\n";
return $sToRender;
}