From 854457baf0043b51ce9c30f36a6fecaed97cb04d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 18 Mar 2016 21:00:14 -0400 Subject: Improve task summary sections --- app/Template/task_file/files.php | 47 +++++++++++++++++++ app/Template/task_file/images.php | 34 ++++++++++++++ app/Template/task_file/show.php | 97 ++++----------------------------------- 3 files changed, 89 insertions(+), 89 deletions(-) create mode 100644 app/Template/task_file/files.php create mode 100644 app/Template/task_file/images.php (limited to 'app/Template/task_file') diff --git a/app/Template/task_file/files.php b/app/Template/task_file/files.php new file mode 100644 index 00000000..5603014e --- /dev/null +++ b/app/Template/task_file/files.php @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + +
+ + + + text->e($file['user_name'] ?: $file['username']) ?> + + dt->date($file['date']) ?> + + text->bytes($file['size']) ?> +
+ \ No newline at end of file diff --git a/app/Template/task_file/images.php b/app/Template/task_file/images.php new file mode 100644 index 00000000..55c098cb --- /dev/null +++ b/app/Template/task_file/images.php @@ -0,0 +1,34 @@ + +
+ +
+ <?= $this->text->e($file['name']) ?> +
+
+ +
+
+ dt->datetime($file['date'])).'
'.t('Size: %s', $this->text->bytes($file['size'])) ?>'> + +
+ +
+
+
+ +
+ \ No newline at end of file diff --git a/app/Template/task_file/show.php b/app/Template/task_file/show.php index 21bf79ef..df69605d 100644 --- a/app/Template/task_file/show.php +++ b/app/Template/task_file/show.php @@ -1,90 +1,9 @@ - -
- - - \ No newline at end of file +
+ render('task_file/images', array('task' => $task, 'images' => $images)) ?> + render('task_file/files', array('task' => $task, 'files' => $files)) ?> +
+ -- cgit v1.2.3