* @package execution * @version $Id: kanban.html.php 935 2022-01-11 16:49:24Z $ * @link https://www.zentao.net */ ?> laneCount; } js::set('regions', $regions); js::set('browseType', $browseType); js::set('kanbanData', $kanbanData); js::set('orderBy', $orderBy); js::set('groupBy', $groupBy); js::set('execution', $execution); js::set('productID', $productID); js::set('kanbanLang', $lang->kanban); js::set('kanbanlaneLang', $lang->kanbanlane); js::set('storyLang', $lang->story); js::set('executionLang', $lang->execution); js::set('bugLang', $lang->bug); js::set('taskLang', $lang->task); js::set('deadlineLang', $lang->task->deadlineAB); js::set('kanbancolumnLang', $lang->kanbancolumn); js::set('kanbancardLang', $lang->kanbancard); js::set('executionID', $execution->id); js::set('laneCount', $laneCount); js::set('userList', $userList); js::set('noAssigned', $lang->kanbancard->noAssigned); js::set('users', $users); js::set('entertime', time()); js::set('displayCards', $execution->displayCards); js::set('productNum', $productNum); js::set('fluidBoard', $execution->fluidBoard); js::set('colorListLang', $lang->kanbancard->colorList); js::set('colorList', $this->config->kanban->cardColorList); js::set('projectID', $projectID); js::set('vision', $this->config->vision); js::set('productCount', count($productNames)); js::set('executionID', $execution->id); $canSortRegion = commonModel::hasPriv('kanban', 'sortRegion') && count($regions) > 1; $canEditRegion = commonModel::hasPriv('kanban', 'editRegion'); $canDeleteRegion = commonModel::hasPriv('kanban', 'deleteRegion'); $canCreateLane = commonModel::hasPriv('kanban', 'createLane'); $canCreateTask = common::hasPriv('task', 'create'); $canBatchCreateTask = common::hasPriv('task', 'batchCreate'); $canCreateBug = common::hasPriv('bug', 'create'); $canBatchCreateBug = common::hasPriv('bug', 'batchCreate'); $canImportBug = common::hasPriv('execution', 'importBug'); $canCreateStory = ($productID and common::hasPriv('story', 'create')); $canBatchCreateStory = ($productID and common::hasPriv('story', 'batchCreate')); $canLinkStory = ($productID and common::hasPriv('execution', 'linkStory')); $canLinkStoryByPlan = ($productID and common::hasPriv('execution', 'importplanstories')); $hasStoryButton = ($canCreateStory or $canBatchCreateStory or $canLinkStory or $canLinkStoryByPlan); $hasTaskButton = ($canCreateTask or $canBatchCreateTask or $canImportBug); $hasBugButton = ($canCreateBug or $canBatchCreateBug); js::set('priv', array( 'canCreateTask' => $canCreateTask, 'canBatchCreateTask' => $canBatchCreateTask, 'canImportBug' => $canImportBug, 'canCreateBug' => $canCreateBug, 'canBatchCreateBug' => $canBatchCreateBug, 'canCreateStory' => $canCreateStory, 'canBatchCreateStory' => $canBatchCreateStory, 'canLinkStory' => $canLinkStory, 'canLinkStoryByPlan' => $canLinkStoryByPlan, 'canAssignBug' => common::hasPriv('bug', 'assignto'), 'canConfirmBug' => common::hasPriv('bug', 'confirmBug'), 'canResolveBug' => common::hasPriv('bug', 'resolve'), 'canCopyBug' => common::hasPriv('bug', 'create'), 'canEditBug' => common::hasPriv('bug', 'edit'), 'canActivateBug' => common::hasPriv('bug', 'activate'), 'canAssignTask' => common::hasPriv('task', 'assignto'), 'canFinishTask' => common::hasPriv('task', 'finish'), 'canPauseTask' => common::hasPriv('task', 'pause'), 'canCancelTask' => common::hasPriv('task', 'cancel'), 'canCloseTask' => common::hasPriv('task', 'close'), 'canActivateTask' => common::hasPriv('task', 'activate'), 'canActivateStory' => common::hasPriv('story', 'activate'), 'canStartTask' => common::hasPriv('task', 'start'), 'canRestartTask' => common::hasPriv('task', 'restart'), 'canEditTask' => common::hasPriv('task', 'edit'), 'canRecordEstimateTask' => common::hasPriv('task', 'recordEstimate'), 'canToStoryBug' => common::hasPriv('story', 'create'), 'canAssignStory' => common::hasPriv('story', 'assignto'), 'canEditStory' => common::hasPriv('story', 'edit'), 'canChangeStory' => common::hasPriv('story', 'change'), 'canUnlinkStory' => common::hasPriv('execution', 'unlinkStory'), ) ); js::set('hasStoryButton', $hasStoryButton); js::set('hasBugButton', $hasBugButton); js::set('hasTaskButton', $hasTaskButton); ?>