From d0760b2925b1449f3e6443d5e3fb6d66996e62c4 Mon Sep 17 00:00:00 2001
From: Uwe Steinmann <steinm@debian.org>
Date: Tue, 14 Jul 2015 10:08:04 +0200
Subject: [PATCH] place comment in left column on previous versions tab

---
 views/bootstrap/class.ViewDocument.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php
index 83218f966..b1821e7ce 100644
--- a/views/bootstrap/class.ViewDocument.php
+++ b/views/bootstrap/class.ViewDocument.php
@@ -1106,7 +1106,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
 			print "<thead>\n<tr>\n";
 			print "<th width='10%'></th>\n";
 			print "<th width='30%'>".getMLText("file")."</th>\n";
-			print "<th width='25%'>".getMLText("comment")."</th>\n";
+//			print "<th width='25%'>".getMLText("comment")."</th>\n";
 			print "<th width='15%'>".getMLText("status")."</th>\n";
 			print "<th width='20%'></th>\n";
 			print "</tr>\n</thead>\n<tbody>\n";
@@ -1148,6 +1148,8 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
 				print "<li>".getMLText("uploaded_by")." <a href=\"mailto:".$updatingUser->getEmail()."\">".htmlspecialchars($updatingUser->getFullName())."</a></li>";
 				print "<li>".getLongReadableDate($version->getDate())."</li>";
 				print "</ul>\n";
+				if($version->getComment())
+					print "<p style=\"font-style: italic;\">".htmlspecialchars($version->getComment())."</p>";
 				print "<ul class=\"actions unstyled\">\n";
 				$attributes = $version->getAttributes();
 				if($attributes) {
@@ -1162,7 +1164,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
 					}
 				}
 				print "</ul>\n";
-				print "<td>".htmlspecialchars($version->getComment())."</td>";
+//				print "<td>".htmlspecialchars($version->getComment())."</td>";
 				print "<td>".getOverallStatusText($vstat["status"])."</td>";
 				print "<td>";
 				print "<ul class=\"actions unstyled\">";