fix html tags for version actions

This commit is contained in:
Uwe Steinmann 2020-09-17 10:52:27 +02:00
parent db1db1787c
commit b39f84e67c

View File

@ -628,8 +628,6 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
print "</ul></td>\n";
// print "<td>".htmlspecialchars($latestContent->getComment())."</td>";
print "<td width='10%'>";
print getOverallStatusText($status["status"]);
if ( $status["status"]==S_DRAFT_REV || $status["status"]==S_DRAFT_APP || $status["status"]==S_IN_WORKFLOW || $status["status"]==S_EXPIRED ){
@ -639,13 +637,14 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "<td>";
print "<ul class=\"unstyled actions\">";
if ($file_exists){
print "<ul class=\"unstyled actions\">";
print "<li><a href=\"../op/op.Download.php?documentid=".$latestContent->getDocument()->getId()."&version=".$latestContent->getVersion()."\"><i class=\"fa fa-download\"></i>".getMLText("download")."</a></li>";
if ($viewonlinefiletypes && (in_array(strtolower($latestContent->getFileType()), $viewonlinefiletypes) || in_array(strtolower($latestContent->getMimeType()), $viewonlinefiletypes)))
print "<li><a target=\"_blank\" href=\"../op/op.ViewOnline.php?documentid=".$latestContent->getDocument()->getId()."&version=". $latestContent->getVersion()."\"><i class=\"fa fa-star\"></i>" . getMLText("view_online") . "</a></li>";
print "</ul>";
}
print "</ul>";
print "<ul class=\"unstyled actions\">";
if ($file_exists){
if($accessop->mayEditVersion()) {