* Finish task #8420.

This commit is contained in:
tianshujie98
2020-11-17 14:42:50 +08:00
parent d0c79808c3
commit b96129db79
+16 -1
View File
@@ -1451,6 +1451,7 @@ class testtaskModel extends model
$id = $col->id;
$caseChanged = $run->version < $run->caseVersion;
$fromCaseID = $run->fromCaseID;
if($col->show)
{
$class = "c-$id ";
@@ -1482,7 +1483,21 @@ class testtaskModel extends model
break;
case 'title':
if($run->branch) echo "<span class='label label-info label-outline'>{$branches[$run->branch]}</span>";
echo $canView ? ($fromCaseID ? html::a($caseLink, $run->title, null, "style='color: $run->color'") . html::a(helper::createLink('testcase', 'view', "caseID=$fromCaseID"), "[<i class='icon icon-share' title='{$this->lang->testcase->fromCase}'></i>#$fromCaseID]") : html::a($caseLink, $run->title, null, "style='color: $run->color'")) : "<span style='color: $run->color'>$run->title</span>";
if($canView)
{
if($fromCaseID)
{
echo html::a($caseLink, $run->title, null, "style='color: $run->color'") . html::a(helper::createLink('testcase', 'view', "caseID=$fromCaseID"), "[<i class='icon icon-share' title='{$this->lang->testcase->fromCase}'></i>#$fromCaseID]");
}
else
{
echo html::a($caseLink, $run->title, null, "style='color: $run->color'");
}
}
else
{
echo "<span style='color: $run->color'>$run->title</span>";
}
break;
case 'branch':
echo $branches[$run->branch];