From 42d822a48d4fca8ec4d72dc53d15f4adb282a23b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 12 Jun 2015 11:23:44 +0200 Subject: [PATCH] output link to approval/review file --- views/bootstrap/class.ViewDocument.php | 28 ++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 41520ab96..5553b3286 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -172,6 +172,20 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { echo ""; if($rec['comment']) echo "
".htmlspecialchars($rec['comment']); + switch($type) { + case "review": + if($rec['file']) { + echo "
"; + echo " ".getMLText('download').""; + } + break; + case "approval": + if($rec['file']) { + echo "
"; + echo " ".getMLText('download').""; + } + break; + } echo ""; echo ""; switch($type) { @@ -688,7 +702,12 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { /* $updateUser is the user who has done the review */ $updateUser = $dms->getUser($r["userID"]); print "
  • ".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."
  • "; - print "".htmlspecialchars($r["comment"])."\n"; + print "".htmlspecialchars($r["comment"]); + if($r['file']) { + echo "
    "; + echo " ".getMLText('download').""; + } + print "\n"; print "".getReviewStatusText($r["status"])."\n"; print ""; - print "".htmlspecialchars($a["comment"])."\n"; + print "".htmlspecialchars($a["comment"]); + if($a['file']) { + echo "
    "; + echo " ".getMLText('download').""; + } + echo "\n"; print "".getApprovalStatusText($a["status"])."\n"; print "