* @package execution * @link https://www.zentao.net */ namespace zin; jsVar('hasExecution', !empty($executions)); $executionsBox = array(); if(empty($executions)) { $executionsBox[] = div ( set::className('inline-flex items-center'), setClass(empty($executions) ? 'bg-lighter h-12' : ''), icon('exclamation-sign icon-2x pl-2 text-warning'), span ( set::className('font-bold ml-2'), $lang->execution->copyNoExecution, ) ); } else { foreach($executions as $id => $execution) { if(empty($execution->multiple)) continue; $executionsBox[] = btn( setClass('execution-block justify-start'), setClass($copyExecutionID == $id ? 'primary-outline' : ''), set('data-id', $id), icon ( setClass('text-gray'), $lang->icons[$execution->type] ), span($execution->name), ); } } /* ====== Render page ====== */ render();