summaryrefslogtreecommitdiff
path: root/app/Template/board/tooltip_tasklinks.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_tasklinks.php
parent6351cb0e27eea05a2b0a8063b8b0df0abc49896d (diff)
Improve board tooltips
Diffstat (limited to 'app/Template/board/tooltip_tasklinks.php')
-rw-r--r--app/Template/board/tooltip_tasklinks.php48
1 files changed, 29 insertions, 19 deletions
diff --git a/app/Template/board/tooltip_tasklinks.php b/app/Template/board/tooltip_tasklinks.php
index cabe43d8..6424c39d 100644
--- a/app/Template/board/tooltip_tasklinks.php
+++ b/app/Template/board/tooltip_tasklinks.php
@@ -1,24 +1,34 @@
-<div class="tooltip-tasklinks">
- <dl>
+<div class="tooltip-large">
+ <table>
<?php foreach ($links as $label => $grouped_links): ?>
- <dt><strong><?= t($label) ?></strong></dt>
+ <tr>
+ <th colspan="4"><?= t($label) ?></th>
+ </tr>
<?php foreach ($grouped_links as $link): ?>
- <dd>
- <span class="progress"><?= $this->task->getProgress($link).'%' ?></span>
- <?= $this->url->link(
- $this->text->e('#'.$link['task_id'].' '.$link['title']),
- 'task', 'show', array('task_id' => $link['task_id'], 'project_id' => $link['project_id']),
- false,
- $link['is_active'] ? '' : 'task-link-closed'
- ) ?>
- <?php if (! empty($link['task_assignee_username'])): ?>
- [<?= $this->text->e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?>]
- <?php endif ?>
- <?php if ($task['project_id'] != $link['project_id']): ?>
- (<i><?= $link['project_name'] ?></i>)
- <?php endif ?>
- </dd>
+ <tr>
+ <td class="column-10">
+ <?= $this->task->getProgress($link).'%' ?>
+ </td>
+ <td class="column-60">
+ <?= $this->url->link(
+ $this->text->e('#'.$link['task_id'].' '.$link['title']),
+ 'task', 'show', array('task_id' => $link['task_id'], 'project_id' => $link['project_id']),
+ false,
+ $link['is_active'] ? '' : 'task-link-closed'
+ ) ?>
+ </td>
+ <td>
+ <?php if (! empty($link['task_assignee_username'])): ?>
+ <?= $this->text->e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?>
+ <?php else: ?>
+ <?= t('Not assigned') ?>
+ <?php endif ?>
+ </td>
+ <td>
+ <?= $link['project_name'] ?>
+ </td>
+ </tr>
<?php endforeach ?>
<?php endforeach ?>
- </dl>
+ </table>
</div> \ No newline at end of file