* @package block * @link https://www.zentao.net */ namespace zin; if(!$longBlock) { unset($config->block->case->dtable->fieldList['status']); unset($config->block->case->dtable->fieldList['lastRunDate']); unset($config->block->case->dtable->fieldList['lastRunResult']); } panel ( set('class', 'case-block list-block ' . ($longBlock ? 'block-long' : 'block-sm')), set('headingClass', 'border-b'), to::heading ( div ( set('class', 'panel-title'), span($block->title), ) ), to::headingActions ( a ( set('class', 'text-gray'), set('href', createLink('my', $block->params->type == 'openedbyme' ? 'contribute' : 'work', 'mode=testcase&type=' . $block->params->type)), $lang->more, icon('caret-right') ) ), dtable ( set::id('case'), set::height(320), set::bordered(false), set::horzScrollbarPos('inside'), set::cols(array_values($config->block->case->dtable->fieldList)), set::data(array_values($cases)), set::fixedLeftWidth($longBlock ? '50%' : '80%'), ) ); render();