* @package execution * @link https://www.zentao.net */ namespace zin; jsVar('hasExecution', !empty($executions)); $executionsBox = array(); if(empty($executions)) { $executionsBox[] = div ( setClass('inline-flex items-center with-icon w-full bg-gray-100 py-4'), 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(setClass('text-left'), $execution->name) ); } } /* ====== Render page ====== */ render();