* Change execution name output use render cell.

This commit is contained in:
caoyanyi
2023-07-04 09:47:00 +08:00
parent 88fd761423
commit f5fedf9ffd
4 changed files with 30 additions and 12 deletions
+1 -3
View File
@@ -5379,15 +5379,13 @@ class executionModel extends model
*/
public function generateRow(array $executions, array $users, array $avatarList): array
{
$today = helper::today();
$rows = array();
$rows = array();
foreach($executions as $execution)
{
$link = $execution->type == 'kanban' ? helper::createLink('execution', 'kanban', "id=$execution->id") : helper::createLink('execution', 'task', "id=$execution->id");
$execution->rawID = $execution->id;
$execution->isExecution = 1;
$execution->id = 'pid' . (string)$execution->id;
$execution->name = "<span class='label secondary-pale'>{$this->lang->execution->typeList[$execution->type]}</span> " . (empty($execution->isParent) ? html::a($link, $execution->name, '_self', 'class="text-primary"') : $execution->name) . (strtotime($today) > strtotime($execution->end) ? '<span class="label danger-pale">' . $this->lang->execution->delayed . '</span>' : '');
$execution->project = $execution->projectName;
$execution->parent = ($execution->parent and $execution->grade > 1) ? 'pid' . (string)$execution->parent : '';
$execution->isParent = !empty($execution->isParent) or !empty($execution->tasks);