summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorBlueTeck <tili2@gmx.de>2015-04-09 10:08:27 +0200
committerBlueTeck <tili2@gmx.de>2015-04-09 10:08:27 +0200
commitbca1012e70db8c23a2a4b2bcf0767a36d1a719ff (patch)
tree254b6ebbde61b2a122c217c97821e7ad942159a7 /app/Template
parentc1329ac7c45baf3c824b91f043e70a2f6b072785 (diff)
#717 add size, user, date to uploaded files
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/file/show.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Template/file/show.php b/app/Template/file/show.php
index 66e1afd9..8615079a 100644
--- a/app/Template/file/show.php
+++ b/app/Template/file/show.php
@@ -16,6 +16,9 @@
<?php endif ?>
<p>
<?= $this->e($file['name']) ?>
+ <span class="column-tooltip" title='<?= $this->e(t('uploaded by').': '.$this->e($file['user_name'] ?: $file['username']).'<br>'.t('uploaded on').': '.dt('%B %e, %Y at %k:%M %p', $file['date']).'<br>'.t('size').': '.round($file['size']/1024/1024,2)).' MB' ?>'>
+ <i class="fa fa-info-circle"></i>
+ </span>
</p>
<span class="task-show-file-actions task-show-image-actions">
<i class="fa fa-eye"></i> <?= $this->a(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
@@ -35,6 +38,9 @@
<td><i class="fa <?= $this->getFileIcon($file['name']) ?> fa-fw"></i></td>
<td>
<?= $this->e($file['name']) ?>
+ <span class="column-tooltip" title='<?= $this->e(t('uploaded by').': '.$this->e($file['user_name'] ?: $file['username']).'<br>'.t('uploaded on').': '.dt('%B %e, %Y at %k:%M %p', $file['date']).'<br>'.t('size').': '.round($file['size']/1024/1024,2)).' MB' ?>'>
+ <i class="fa fa-info-circle"></i>
+ </span>
</td>
<td>
<span class="task-show-file-actions">