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 "";
@@ -752,7 +771,12 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
/* $updateUser is the user who has done the approval */
$updateUser = $dms->getUser($a["userID"]);
print "- ".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$a["userID"]."'")."
| ";
- print "".htmlspecialchars($a["comment"])." | \n";
+ print "".htmlspecialchars($a["comment"]);
+ if($a['file']) {
+ echo " ";
+ echo " ".getMLText('download')."";
+ }
+ echo " | \n";
print "".getApprovalStatusText($a["status"])." | \n";
print " |