diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-10 22:37:09 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-10 22:37:09 -0400 |
commit | d91b5d4aa3acae17333eb7300bc0f6621dab11b2 (patch) | |
tree | 2d7553cb18d1ca557a88fc3d96c03b135bfe2c8e /app/Template/board/files.php | |
parent | 788ef2bc07206c676a8ad3f1e27aed9669c703ff (diff) |
Improve pull-request
Diffstat (limited to 'app/Template/board/files.php')
-rw-r--r-- | app/Template/board/files.php | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/app/Template/board/files.php b/app/Template/board/files.php index 61529434..851a118d 100644 --- a/app/Template/board/files.php +++ b/app/Template/board/files.php @@ -1,27 +1,25 @@ <section> <table> - <?php if (!empty($images)): ?> + <?php if (! empty($images)): ?> <?php foreach ($images as $file): ?> <tr> - <td><i class="fa fa-file-image-o fa-fw"></i> - <?= - $this->e($file['name']) - ?> + <td class="column-70"> + <i class="fa fa-file-image-o fa-fw"></i> + <?= $this->e($file['name']) ?> </td> <td> <i class="fa fa-download"></i> <?= $this->a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> - <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') ?> + <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') ?> </td> </tr> <?php endforeach ?> <?php endif ?> - <?php if (!empty($files)): ?> + <?php if (! empty($files)): ?> <?php foreach ($files as $file): ?> <tr> - <td><i class="fa <?= $this->file->get_icon($file['name']) ?> fa-fw"></i> - <?= - $this->e($file['name']) - ?> + <td> + <i class="fa <?= $this->getFileIcon($file['name']) ?> fa-fw"></i> + <?= $this->e($file['name']) ?> </td> <td> <i class="fa fa-download"></i> <?= $this->a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> |