summaryrefslogtreecommitdiff
path: root/app/Template/board/tooltip_subtasks.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-19 16:51:25 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-19 16:51:25 -0400
commitcaf8cb3323e4ef9af2f76b639785d083540d4687 (patch)
treea1d099c88e875347466974712eb5a7c722e32dad /app/Template/board/tooltip_subtasks.php
parent6351cb0e27eea05a2b0a8063b8b0df0abc49896d (diff)
Improve board tooltips
Diffstat (limited to 'app/Template/board/tooltip_subtasks.php')
-rw-r--r--app/Template/board/tooltip_subtasks.php34
1 files changed, 21 insertions, 13 deletions
diff --git a/app/Template/board/tooltip_subtasks.php b/app/Template/board/tooltip_subtasks.php
index 126a319f..0322d373 100644
--- a/app/Template/board/tooltip_subtasks.php
+++ b/app/Template/board/tooltip_subtasks.php
@@ -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>