summaryrefslogtreecommitdiff
path: root/app/Controller/Subtask.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-08 22:02:42 -0500
committerFrederic Guillot <fred@kanboard.net>2016-03-08 22:02:42 -0500
commitf91f3214c12e315afd8984653ea2d9db8408793d (patch)
tree45de211e61189da032f1646f67c4de2a566558dc /app/Controller/Subtask.php
parentd4eea1e252771e5f764c7654c7b9fc1b86b2ce9d (diff)
Always display project name and task title in task views
Diffstat (limited to 'app/Controller/Subtask.php')
-rw-r--r--app/Controller/Subtask.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Controller/Subtask.php b/app/Controller/Subtask.php
index 8ca0ce92..bc2108f9 100644
--- a/app/Controller/Subtask.php
+++ b/app/Controller/Subtask.php
@@ -23,6 +23,7 @@ class Subtask extends Base
'project' => $this->getProject(),
'subtasks' => $this->subtask->getAll($task['id']),
'editable' => true,
+ 'show_title' => true,
)));
}
@@ -42,7 +43,7 @@ class Subtask extends Base
);
}
- $this->response->html($this->helper->layout->task('subtask/create', array(
+ $this->response->html($this->template->render('subtask/create', array(
'values' => $values,
'errors' => $errors,
'users_list' => $this->projectUserRole->getAssignableUsersList($task['project_id']),
@@ -89,7 +90,7 @@ class Subtask extends Base
$task = $this->getTask();
$subtask = $this->getSubTask();
- $this->response->html($this->helper->layout->task('subtask/edit', array(
+ $this->response->html($this->template->render('subtask/edit', array(
'values' => empty($values) ? $subtask : $values,
'errors' => $errors,
'users_list' => $this->projectUserRole->getAssignableUsersList($task['project_id']),
@@ -135,7 +136,7 @@ class Subtask extends Base
$task = $this->getTask();
$subtask = $this->getSubtask();
- $this->response->html($this->helper->layout->task('subtask/remove', array(
+ $this->response->html($this->template->render('subtask/remove', array(
'subtask' => $subtask,
'task' => $task,
)));