Improve file attachments tooltip on the board
This commit is contained in:
@@ -21,6 +21,7 @@ New features:
|
|||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
* Improve file attachments tooltip on the board
|
||||||
* Adjust automatically the height of the placeholder during drag and drop
|
* Adjust automatically the height of the placeholder during drag and drop
|
||||||
* Show all tasks when using no search criteria
|
* Show all tasks when using no search criteria
|
||||||
* Add column vertical scrolling
|
* Add column vertical scrolling
|
||||||
|
|||||||
@@ -179,8 +179,7 @@ class Board extends Base
|
|||||||
$task = $this->getTask();
|
$task = $this->getTask();
|
||||||
|
|
||||||
$this->response->html($this->template->render('board/tooltip_files', array(
|
$this->response->html($this->template->render('board/tooltip_files', array(
|
||||||
'files' => $this->file->getAllDocuments($task['id']),
|
'files' => $this->file->getAll($task['id']),
|
||||||
'images' => $this->file->getAllImages($task['id']),
|
|
||||||
'task' => $task,
|
'task' => $task,
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +1,18 @@
|
|||||||
<section>
|
<table class="table-small">
|
||||||
<table>
|
<?php foreach($files as $file): ?>
|
||||||
<?php if (! empty($images)): ?>
|
<tr>
|
||||||
<?php foreach ($images as $file): ?>
|
<th>
|
||||||
<tr>
|
<i class="fa <?= $this->file->icon($file['name']) ?> fa-fw"></i>
|
||||||
<td class="column-70">
|
<?= $this->e($file['name']) ?>
|
||||||
<i class="fa fa-file-image-o fa-fw"></i>
|
</th>
|
||||||
<?= $this->e($file['name']) ?>
|
</tr>
|
||||||
</td>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<i class="fa fa-download"></i> <?= $this->url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
|
<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'])) ?>
|
||||||
<i class="fa fa-eye"></i> <?= $this->url->link(t('open file'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
|
<?php if ($file['is_image'] == 1): ?>
|
||||||
</td>
|
<i class="fa fa-eye"></i> <?= $this->url->link(t('open file'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
|
||||||
</tr>
|
<?php endif ?>
|
||||||
<?php endforeach ?>
|
</td>
|
||||||
<?php endif ?>
|
</tr>
|
||||||
<?php if (! empty($files)): ?>
|
<?php endforeach ?>
|
||||||
<?php foreach ($files as $file): ?>
|
</table>
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<i class="fa <?= $this->file->icon($file['name']) ?> fa-fw"></i>
|
|
||||||
<?= $this->e($file['name']) ?>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<i class="fa fa-download"></i> <?= $this->url->link(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