show workflow state instead of just 'in workflow'

also set title of surounding span to workflow name
This commit is contained in:
Uwe Steinmann 2016-12-07 15:30:59 +01:00
parent 105b453991
commit ad91c8202b

View File

@ -1828,7 +1828,13 @@ $(document).ready( function() {
$content .= count($files)." ".getMLText("linked_files")."<br />"; $content .= count($files)." ".getMLText("linked_files")."<br />";
if(count($links)) if(count($links))
$content .= count($links)." ".getMLText("linked_documents")."<br />"; $content .= count($links)." ".getMLText("linked_documents")."<br />";
$content .= getOverallStatusText($status["status"])."</small></td>"; if($status["status"] == S_IN_WORKFLOW && $workflowmode == 'advanced') {
$workflowstate = $latestContent->getWorkflowState();
$content .= '<span title="'.getOverallStatusText($status["status"]).': '.$workflow->getName().'">'.$workflowstate->getName().'</span>';
} else {
$content .= getOverallStatusText($status["status"]);
}
$content .= "</small></td>";
// $content .= "<td>".$version."</td>"; // $content .= "<td>".$version."</td>";
$content .= "<td>"; $content .= "<td>";
$content .= "<div class=\"list-action\">"; $content .= "<div class=\"list-action\">";