Improve board tooltips

This commit is contained in:
Frederic Guillot
2016-03-19 16:51:25 -04:00
parent 6351cb0e27
commit caf8cb3323
15 changed files with 108 additions and 108 deletions

View File

@@ -1,14 +1,22 @@
<table class="table-stripped">
<?php foreach ($subtasks as $subtask): ?>
<tr>
<td class="column-80">
<?= $this->subtask->toggleStatus($subtask, $task['project_id']) ?>
</td>
<td>
<?php if (! empty($subtask['username'])): ?>
<div class="tooltip-large">
<table>
<tr>
<th class="column-80"><?= t('Subtask') ?></th>
<th><?= t('Assignee') ?></th>
</tr>
<?php foreach ($subtasks as $subtask): ?>
<tr>
<td>
<?= $this->subtask->toggleStatus($subtask, $task['project_id']) ?>
</td>
<td>
<?php if (! empty($subtask['username'])): ?>
<?= $this->text->e($subtask['name'] ?: $subtask['username']) ?>
<?php endif ?>
</td>
</tr>
<?php endforeach ?>
</table>
<?php else: ?>
<?= t('Not assigned') ?>
<?php endif ?>
</td>
</tr>
<?php endforeach ?>
</table>
</div>