public function show()
 {
     $task = $this->getTask();
     $this->response->html($this->template->render('task_move_position/show', array('task' => $task, 'board' => BoardFormatter::getInstance($this->container)->withProjectId($task['project_id'])->withQuery($this->taskFinderModel->getExtendedQuery()->eq(TaskModel::TABLE . '.is_active', TaskModel::STATUS_OPEN)->neq(TaskModel::TABLE . '.id', $task['id']))->format())));
 }
Example #2
0
 public function getBoard($project_id)
 {
     ProjectAuthorization::getInstance($this->container)->check($this->getClassName(), 'getBoard', $project_id);
     return BoardFormatter::getInstance($this->container)->withProjectId($project_id)->withQuery($this->taskFinderModel->getExtendedQuery())->format();
 }
 /**
  * Render board
  *
  * @access protected
  * @param  integer $project_id
  * @return string
  */
 protected function renderBoard($project_id)
 {
     return $this->template->render('board/table_container', array('project' => $this->projectModel->getById($project_id), 'board_private_refresh_interval' => $this->configModel->get('board_private_refresh_interval'), 'board_highlight_period' => $this->configModel->get('board_highlight_period'), 'swimlanes' => $this->taskLexer->build($this->userSession->getFilters($project_id))->format(BoardFormatter::getInstance($this->container)->withProjectId($project_id))));
 }
 /**
  * Show a board for a given project
  *
  * @access public
  */
 public function show()
 {
     $project = $this->getProject();
     $search = $this->helper->projectHeader->getSearchQuery($project);
     $this->response->html($this->helper->layout->app('board/view_private', array('project' => $project, 'title' => $project['name'], 'description' => $this->helper->projectHeader->getDescription($project), 'board_private_refresh_interval' => $this->configModel->get('board_private_refresh_interval'), 'board_highlight_period' => $this->configModel->get('board_highlight_period'), 'swimlanes' => $this->taskLexer->build($search)->format(BoardFormatter::getInstance($this->container)->withProjectId($project['id'])))));
 }