summaryrefslogtreecommitdiff
path: root/app/Template/file/show.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-14 15:49:59 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-14 15:49:59 -0500
commit8477da26437cd927b47fbac8874e2a7e02b580ca (patch)
tree2e1b256eba73a3b719f57ff5df8b4497faa2c3f9 /app/Template/file/show.php
parent8e25c875f26b05e3138fb4d09d9f720456c09f76 (diff)
Rename File controller to TaskFile
Diffstat (limited to 'app/Template/file/show.php')
-rw-r--r--app/Template/file/show.php84
1 files changed, 0 insertions, 84 deletions
diff --git a/app/Template/file/show.php b/app/Template/file/show.php
deleted file mode 100644
index ed006299..00000000
--- a/app/Template/file/show.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php if (! empty($files) || ! empty($images)): ?>
-<div id="attachments" class="task-show-section">
-
- <div class="page-header">
- <h2><?= t('Attachments') ?></h2>
- </div>
- <?php if (! empty($images)): ?>
- <div class="file-thumbnails">
- <?php foreach ($images as $file): ?>
- <div class="file-thumbnail">
- <a href="<?= $this->url->href('file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>" class="popover"><img src="<?= $this->url->href('file', 'thumbnail', array('file_id' => $file['id'], 'project_id' => $task['project_id'], 'task_id' => $file['task_id'])) ?>" title="<?= $this->e($file['name']) ?>" alt="<?= $this->e($file['name']) ?>"></a>
- <div class="file-thumbnail-content">
- <div class="file-thumbnail-title">
- <div class="dropdown">
- <a href="#" class="dropdown-menu dropdown-menu-link-text"><?= $this->e($file['name']) ?> <i class="fa fa-caret-down"></i></a>
- <ul>
- <?php if ($this->user->hasProjectAccess('file', 'remove', $task['project_id'])): ?>
- <li>
- <i class="fa fa-trash fa-fw"></i>
- <?= $this->url->link(t('Remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
- </li>
- <?php endif ?>
- <li>
- <i class="fa fa-download fa-fw"></i>
- <?= $this->url->link(t('Download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
- </li>
- </ul>
- </div>
- </div>
- <div class="file-thumbnail-description">
- <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']) ?>
- </div>
- </div>
- </div>
- <?php endforeach ?>
- </div>
- <?php endif ?>
-
- <?php if (! empty($files)): ?>
- <table class="table-stripped">
- <tr>
- <th><?= t('Filename') ?></th>
- <th><?= t('Creator') ?></th>
- <th><?= t('Date') ?></th>
- <th><?= t('Size') ?></th>
- </tr>
- <?php foreach ($files as $file): ?>
- <tr>
- <td>
- <i class="fa <?= $this->file->icon($file['name']) ?> fa-fw"></i>
- <div class="dropdown">
- <a href="#" class="dropdown-menu dropdown-menu-link-text"><?= $this->e($file['name']) ?> <i class="fa fa-caret-down"></i></a>
- <ul>
- <?php if ($this->user->hasProjectAccess('file', 'remove', $task['project_id'])): ?>
- <li>
- <i class="fa fa-trash fa-fw"></i>
- <?= $this->url->link(t('Remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
- </li>
- <?php endif ?>
- <li>
- <i class="fa fa-download fa-fw"></i>
- <?= $this->url->link(t('Download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
- </li>
- </ul>
- </div>
- </td>
- <td>
- <?= $this->e($file['user_name'] ?: $file['username']) ?>
- </td>
- <td>
- <?= $this->dt->date($file['date']) ?>
- </td>
- <td>
- <?= $this->text->bytes($file['size']) ?>
- </td>
- </tr>
- <?php endforeach ?>
- </table>
- <?php endif ?>
-</div>
-<?php endif ?> \ No newline at end of file