|
|
<?php |
|
|
|
|
|
namespace Kanboard\Controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BoardTooltipController extends BaseController |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function tasklinks() |
|
|
{ |
|
|
$task = $this->getTask(); |
|
|
$this->response->html($this->template->render('board/tooltip_tasklinks', array( |
|
|
'links' => $this->taskLinkModel->getAllGroupedByLabel($task['id']), |
|
|
'task' => $task, |
|
|
))); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function externallinks() |
|
|
{ |
|
|
$task = $this->getTask(); |
|
|
$this->response->html($this->template->render('board/tooltip_external_links', array( |
|
|
'links' => $this->taskExternalLinkModel->getAll($task['id']), |
|
|
'task' => $task, |
|
|
))); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function subtasks() |
|
|
{ |
|
|
$task = $this->getTask(); |
|
|
$this->response->html($this->template->render('board/tooltip_subtasks', array( |
|
|
'subtasks' => $this->subtaskModel->getAll($task['id']), |
|
|
'task' => $task, |
|
|
))); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function attachments() |
|
|
{ |
|
|
$task = $this->getTask(); |
|
|
|
|
|
$this->response->html($this->template->render('board/tooltip_files', array( |
|
|
'files' => $this->taskFileModel->getAll($task['id']), |
|
|
'task' => $task, |
|
|
))); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function description() |
|
|
{ |
|
|
$task = $this->getTask(); |
|
|
|
|
|
$this->response->html($this->template->render('board/tooltip_description', array( |
|
|
'task' => $task |
|
|
))); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function recurrence() |
|
|
{ |
|
|
$task = $this->getTask(); |
|
|
|
|
|
$this->response->html($this->template->render('task_recurrence/info', array( |
|
|
'task' => $task, |
|
|
'recurrence_trigger_list' => $this->taskRecurrenceModel->getRecurrenceTriggerList(), |
|
|
'recurrence_timeframe_list' => $this->taskRecurrenceModel->getRecurrenceTimeframeList(), |
|
|
'recurrence_basedate_list' => $this->taskRecurrenceModel->getRecurrenceBasedateList(), |
|
|
))); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function swimlane() |
|
|
{ |
|
|
$this->getProject(); |
|
|
$swimlane = $this->swimlaneModel->getById($this->request->getIntegerParam('swimlane_id')); |
|
|
$this->response->html($this->template->render('board/tooltip_description', array('task' => $swimlane))); |
|
|
} |
|
|
} |
|
|
|