From 124f93dbadca4eb51eda378701042e564f0255b8 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 13 Feb 2016 22:51:58 -0500 Subject: Improve image thumbnails and files table --- app/Template/file/remove.php | 2 +- app/Template/file/show.php | 92 ++++++++++++++++++++++++++++---------------- 2 files changed, 60 insertions(+), 34 deletions(-) (limited to 'app/Template') diff --git a/app/Template/file/remove.php b/app/Template/file/remove.php index 37f648eb..24844835 100644 --- a/app/Template/file/remove.php +++ b/app/Template/file/remove.php @@ -10,6 +10,6 @@
url->link(t('Yes'), 'file', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), true, 'btn btn-red') ?> - url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
\ No newline at end of file diff --git a/app/Template/file/show.php b/app/Template/file/show.php index 7a4d38b4..ed006299 100644 --- a/app/Template/file/show.php +++ b/app/Template/file/show.php @@ -5,50 +5,76 @@

-

- + -

- +
+ + + + + + - + + -- cgit v1.2.3
- e($file['name']) ?> - '.t('uploaded on: %s', $this->dt->datetime($file['date'])).'
'.t('size: %s', $this->text->bytes($file['size'])) ?>'> - -
+ +
- - user->hasProjectAccess('file', 'remove', $task['project_id'])): ?> - url->link(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - - url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - + e($file['user_name'] ?: $file['username']) ?> + + dt->date($file['date']) ?> + + text->bytes($file['size']) ?>