diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-13 17:50:20 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-13 17:50:20 -0500 |
commit | 364382b1b58db8bf1bd2c8866e21c869a7a5d6d0 (patch) | |
tree | e1bdaf8c76bbb6036b3bb7a3a19e8cc1e2e99604 /app/Template/board/tasklinks.php | |
parent | 124f7cad284d7ce867666def5731ad34a9265e63 (diff) |
Add task links (Merge pull-request #610)
Diffstat (limited to 'app/Template/board/tasklinks.php')
-rw-r--r-- | app/Template/board/tasklinks.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/Template/board/tasklinks.php b/app/Template/board/tasklinks.php new file mode 100644 index 00000000..d7b64e1d --- /dev/null +++ b/app/Template/board/tasklinks.php @@ -0,0 +1,28 @@ +<section class="tooltip-tasklinks"> +<div> +<ul> +<?php +$previous_link = null; +foreach ($links as $link): ?> + <?php if (null == $previous_link || $previous_link != $link['label']): ?> + <?php if (null != $previous_link): ?> + </ul> + </li> + <?php endif ?> + <?php $previous_link = $link['label']; ?> + <li><?= t($this->e($link['label'])) ?> + <ul> + <?php endif ?> + <li<?php if (0 == $link['task_inverse_is_active']): ?> class="task-closed"<?php endif ?>> + <?= $this->e($link['task_inverse_category']) ?> + <?= $this->a('#'.$this->e($link['task_inverse_id']).' - '.trim($this->e($link['task_inverse_title'])), + 'task', + 'show', + array('task_id' => $link['task_inverse_id'], 'project_id' => $link['task_inverse_project_id'])) ?> + </li> +<?php endforeach ?> + </ul> + </li> +</ul> +</div> +</section> |