From 88ba0c0953395e18dbdd871e96831d885f59740c Mon Sep 17 00:00:00 2001 From: BlueTeck Date: Mon, 2 Mar 2015 22:40:09 +0100 Subject: preview images in taskview --- app/Template/file/show.php | 70 +++++++++++++++++++++++++++++++++------------- app/Template/task/show.php | 2 +- 2 files changed, 51 insertions(+), 21 deletions(-) (limited to 'app/Template') diff --git a/app/Template/file/show.php b/app/Template/file/show.php index 298976f6..2af5a7aa 100644 --- a/app/Template/file/show.php +++ b/app/Template/file/show.php @@ -1,23 +1,53 @@ - -
+ +
- + + +

+ +

+
    + +
  • +
    + <?= $this->e($file['name']) ?> +
    +

    + e($file['name']) ?> +

    + + a(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> + a(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + +
  • + +
+ + +

+ +

+
    + +
  • + a($this->e($file['name']), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + + a(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> + +
  • + +
-
    - -
  • - a($this->e($file['name']), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - - - a(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>, - - a(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - -
  • - -
+
+ + - \ No newline at end of file + + + + endif ?> \ No newline at end of file diff --git a/app/Template/task/show.php b/app/Template/task/show.php index 1ff2ef43..45485e53 100644 --- a/app/Template/task/show.php +++ b/app/Template/task/show.php @@ -4,5 +4,5 @@ render('tasklink/show', array('task' => $task, 'links' => $links)) ?> render('subtask/show', array('task' => $task, 'subtasks' => $subtasks)) ?> render('task/timesheet', array('task' => $task)) ?> -render('file/show', array('task' => $task, 'files' => $files)) ?> +render('file/show', array('task' => $task, 'files' => $files, 'images' => $images)) ?> render('task/comments', array('task' => $task, 'comments' => $comments, 'project' => $project)) ?> -- cgit v1.2.3