diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-05 11:27:34 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-05 11:27:34 -0500 |
commit | a2e2ab8997cc57042aadbd507109acdbe0475c2d (patch) | |
tree | bf1ea02ec1b43282b4c66692e99910a19c255c44 /app | |
parent | 40cd74aa9507c37b5cff6d1307a64894e966892e (diff) |
Show uploaded date under thumbnails when there is no user linked to a file
Diffstat (limited to 'app')
-rw-r--r-- | app/Template/project_overview/images.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Template/project_overview/images.php b/app/Template/project_overview/images.php index 7e7962e8..482ef551 100644 --- a/app/Template/project_overview/images.php +++ b/app/Template/project_overview/images.php @@ -33,7 +33,11 @@ <span class="tooltip" title='<?= t('Uploaded: %s', $this->dt->datetime($file['date'])).'<br>'.t('Size: %s', $this->text->bytes($file['size'])) ?>'> <i class="fa fa-info-circle"></i> </span> - <?= t('Uploaded by %s', $file['user_name'] ?: $file['username']) ?> + <?php if (! empty($file['user_id'])): ?> + <?= t('Uploaded by %s', $file['user_name'] ?: $file['username']) ?> + <?php else: ?> + <?= t('Uploaded: %s', $this->dt->datetime($file['date'])) ?> + <?php endif ?> </div> </div> </div> |