diff options
Diffstat (limited to 'app/Template/task_file/files.php')
-rw-r--r-- | app/Template/task_file/files.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Template/task_file/files.php b/app/Template/task_file/files.php index 32bebdcb..ffebdb84 100644 --- a/app/Template/task_file/files.php +++ b/app/Template/task_file/files.php @@ -15,8 +15,7 @@ <ul> <?php if ($this->file->getPreviewType($file['name']) !== null): ?> <li> - <i class="fa fa-eye fa-fw"></i> - <?= $this->url->link(t('View file'), 'FileViewerController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> + <?= $this->modal->large('eye', t('View file'), 'FileViewerController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> </li> <?php elseif ($this->file->getBrowserViewType($file['name']) !== null): ?> <li> @@ -30,8 +29,7 @@ </li> <?php if ($this->user->hasProjectAccess('TaskFileController', 'remove', $task['project_id'])): ?> <li> - <i class="fa fa-trash fa-fw"></i> - <?= $this->url->link(t('Remove'), 'TaskFileController', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?> + <?= $this->modal->confirm('trash-o', t('Remove'), 'TaskFileController', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?> </li> <?php endif ?> </ul> |