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,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>