Simplify layout and templates generation
This commit is contained in:
@@ -26,7 +26,7 @@ class File extends Base
|
||||
return $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
|
||||
}
|
||||
|
||||
$this->response->html($this->taskLayout('file/screenshot', array(
|
||||
$this->response->html($this->helper->layout->task('file/screenshot', array(
|
||||
'task' => $task,
|
||||
)));
|
||||
}
|
||||
@@ -40,7 +40,7 @@ class File extends Base
|
||||
{
|
||||
$task = $this->getTask();
|
||||
|
||||
$this->response->html($this->taskLayout('file/new', array(
|
||||
$this->response->html($this->helper->layout->task('file/new', array(
|
||||
'task' => $task,
|
||||
'max_size' => ini_get('upload_max_filesize'),
|
||||
)));
|
||||
@@ -178,7 +178,7 @@ class File extends Base
|
||||
$task = $this->getTask();
|
||||
$file = $this->file->getById($this->request->getIntegerParam('file_id'));
|
||||
|
||||
$this->response->html($this->taskLayout('file/remove', array(
|
||||
$this->response->html($this->helper->layout->task('file/remove', array(
|
||||
'task' => $task,
|
||||
'file' => $file,
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user