Merge pull-request #699
This commit is contained in:
@@ -1,14 +1,33 @@
|
||||
<section>
|
||||
<?php foreach ($files as $file): ?>
|
||||
<i class="fa fa-file-o fa-fw"></i>
|
||||
|
||||
<?= $this->a(
|
||||
$this->e($file['name']),
|
||||
'file',
|
||||
'download',
|
||||
array('file_id' => $file['id'], 'task_id' => $file['task_id'], 'project_id' => $task['project_id'])
|
||||
) ?>
|
||||
|
||||
<br/>
|
||||
<?php endforeach ?>
|
||||
<table>
|
||||
<?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>
|
||||
<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') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
<?php endif ?>
|
||||
<?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>
|
||||
<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'])) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
<?php endif ?>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user