* @package block * @link https://www.zentao.net */ namespace zin; if(!$longBlock) { unset($config->block->bug->dtable->fieldList['id']); unset($config->block->bug->dtable->fieldList['pri']); unset($config->block->bug->dtable->fieldList['confirmed']); unset($config->block->bug->dtable->fieldList['deadline']); } panel ( set::title($block->title), set('class', 'bug-block list-block ' . ($longBlock ? 'block-long' : 'block-sm')), set('headingClass', 'border-b'), to::headingActions ( a ( set('class', 'text-gray'), set('href', $block->moreLink), $lang->more, icon('caret-right') ) ), dtable ( set::id('bug'), set::height(318), set::bordered(false), set::horzScrollbarPos('inside'), set::cols(array_values($config->block->bug->dtable->fieldList)), set::data(array_values($bugs)), ), ); render();