diff --git a/lib/zin/wg/entitytitle/v1.php b/lib/zin/wg/entitytitle/v1.php index c09cf0d5c2..d0a53d3146 100644 --- a/lib/zin/wg/entitytitle/v1.php +++ b/lib/zin/wg/entitytitle/v1.php @@ -36,8 +36,9 @@ class entityTitle extends wg protected static array $defineBlocks = array ( - 'prefix' => array(), - 'suffix' => array() + 'prefix' => array(), + 'leading' => array(), + 'suffix' => array() ); protected function created() @@ -80,6 +81,7 @@ class entityTitle extends wg $id, array('class' => array($this->prop('idClass'), $this->prop('inline') ? 'mr' . $this->prop('gap', 2) : '')), ) : null, + $this->block('leading'), $this->buildParentTitle(), is_string($url) ? a( diff --git a/module/task/ui/view.html.php b/module/task/ui/view.html.php index 3eeacbe3e7..361ed51361 100644 --- a/module/task/ui/view.html.php +++ b/module/task/ui/view.html.php @@ -165,20 +165,13 @@ $tabs[] = setting() ->title($lang->task->legendMisc) ->control('taskMiscInfo'); -$parent = null; -if($task->parent) -{ - $parent = new stdClass(); - $parent->id = $task->parent; - $parent->name = $task->parentName; -} - detail ( $task->parent ? array ( set::parentTitle($task->parentName), - set::parentUrl(createLink('task', 'view', "taskID={$task->parent}")) + set::parentUrl(createLink('task', 'view', "taskID={$task->parent}")), + to::title(to::leading(label(setClass('gray-pale rounded-full'), $lang->task->childrenAB))) ) : null, set::toolbar($toolbar), set::sections($sections),