* Finish task #70008.

This commit is contained in:
tianshujie
2022-09-22 09:07:11 +08:00
parent a5f7ea7d3f
commit a8bdc9bc6c
5 changed files with 17 additions and 9 deletions

View File

@@ -1602,7 +1602,10 @@ class testtaskModel extends model
if($run->story and $run->storyTitle) echo html::a(helper::createLink('story', 'view', "storyID=$run->story"), $run->storyTitle);
break;
case 'assignedTo':
echo zget($users, $run->assignedTo);
$btnTextClass = '';
if($run->assignedTo == $this->app->user->account) $btnTextClass = 'assigned-current';
if(!empty($run->assignedTo) and $run->assignedTo != $this->app->user->account) $btnTextClass = 'assigned-other';
echo "<span class='$btnTextClass'>" . zget($users, $run->assignedTo) . '</span>';
break;
case 'bugs':
echo (common::hasPriv('testcase', 'bugs') and $run->bugs) ? html::a(helper::createLink('testcase', 'bugs', "runID={$run->id}&caseID={$run->case}"), $run->bugs, '', "class='iframe'") : $run->bugs;