From 7211f4b10a98072badd715d438d32916f419c062 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 11 Nov 2015 10:29:49 +0100 Subject: [PATCH] show status log --- views/bootstrap/class.DocumentVersionDetail.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/views/bootstrap/class.DocumentVersionDetail.php b/views/bootstrap/class.DocumentVersionDetail.php index f39e03a9f..0ad987164 100644 --- a/views/bootstrap/class.DocumentVersionDetail.php +++ b/views/bootstrap/class.DocumentVersionDetail.php @@ -303,6 +303,22 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style { $this->contentContainerEnd(); if($user->isAdmin()) { + $this->contentHeading(getMLText("status")); + $this->contentContainerStart(); + $statuslog = $version->getStatusLog(); + echo ""; + echo "\n"; + echo ""; + foreach($statuslog as $entry) { + if($suser = $dms->getUser($entry['userID'])) + $fullname = $suser->getFullName(); + else + $fullname = "--"; + echo "\n"; + } + print "\n
".getMLText('date')."".getMLText('status')."".getMLText('user')."".getMLText('comment')."
".$entry['date']."".getOverallStatusText($entry['status'])."".$fullname."".$entry['comment']."
\n"; + $this->contentContainerEnd(); + ?>