summaryrefslogtreecommitdiff
path: root/app/Template/board/public.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-26 17:43:13 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-26 17:43:13 -0500
commitcf821e117ce8b937cff7f386a107aaa81ba6bf9b (patch)
tree6075f4d1c5192f45e8b13479bc67f973b046fdf2 /app/Template/board/public.php
parent2b27d986b374923a266c132ac0a67fb515d30d1c (diff)
Add swimlanes
Diffstat (limited to 'app/Template/board/public.php')
-rw-r--r--app/Template/board/public.php43
1 files changed, 8 insertions, 35 deletions
diff --git a/app/Template/board/public.php b/app/Template/board/public.php
index 090d617b..0544f392 100644
--- a/app/Template/board/public.php
+++ b/app/Template/board/public.php
@@ -1,39 +1,12 @@
<section id="main" class="public-board">
- <?php if (empty($columns)): ?>
- <p class="alert alert-error"><?= t('There is no column in your project!') ?></p>
- <?php else: ?>
- <table id="board">
- <tr>
- <?php $column_with = round(100 / count($columns), 2); ?>
- <?php foreach ($columns as $column): ?>
- <th width="<?= $column_with ?>%">
- <?= Helper\escape($column['title']) ?>
- <?php if ($column['task_limit']): ?>
- <span title="<?= t('Task limit') ?>" class="task-limit">(<?= Helper\escape(count($column['tasks']).'/'.$column['task_limit']) ?>)</span>
- <?php endif ?>
- </th>
- <?php endforeach ?>
- </tr>
- <tr>
- <?php foreach ($columns as $column): ?>
- <td class="column <?= $column['task_limit'] && count($column['tasks']) > $column['task_limit'] ? 'task-limit-warning' : '' ?>">
- <?php foreach ($column['tasks'] as $task): ?>
- <div class="task-board task-<?= $task['color_id'] ?>">
-
- <?= Helper\template('board/task', array(
- 'task' => $task,
- 'categories' => $categories,
- 'not_editable' => true,
- 'project' => $project
- )) ?>
-
- </div>
- <?php endforeach ?>
- </td>
- <?php endforeach ?>
- </tr>
- </table>
- <?php endif ?>
+ <?= Helper\template('board/show', array(
+ 'project' => $project,
+ 'swimlanes' => $swimlanes,
+ 'categories' => $categories,
+ 'board_private_refresh_interval' => $board_private_refresh_interval,
+ 'board_highlight_period' => $board_highlight_period,
+ 'not_editable' => true,
+ )) ?>
</section> \ No newline at end of file