diff options
author | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-22 16:30:03 -0500 |
---|---|---|
committer | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-22 16:30:03 -0500 |
commit | 2f4651411b1827e1e5859ba6053052b508f455e0 (patch) | |
tree | ea07631e7a5e5850367f873c7a9c1a0e07e10638 /templates/board_public.php | |
parent | a1923d3d7f9276e859d6fd6bee339f0ea00f6544 (diff) |
Add kiosk mode, public board access with read-only and auto-refresh
Diffstat (limited to 'templates/board_public.php')
-rw-r--r-- | templates/board_public.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/templates/board_public.php b/templates/board_public.php new file mode 100644 index 00000000..d01bae0f --- /dev/null +++ b/templates/board_public.php @@ -0,0 +1,41 @@ +<section id="main"> + + <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']) ?> + </th> + <?php endforeach ?> + </tr> + <tr> + <?php foreach ($columns as $column): ?> + <td class="column"> + <?php foreach ($column['tasks'] as $task): ?> + <div class="draggable-item"> + <div class="task task-<?= $task['color_id'] ?>"> + + #<?= $task['id'] ?> - + + <span class="task-user"> + <?php if (! empty($task['owner_id'])): ?> + <?= t('Assigned to %s', $task['username']) ?> + <?php else: ?> + <span class="task-nobody"><?= t('No body assigned') ?></span> + <?php endif ?> + </span> + + <div class="task-title"> + <?= Helper\escape($task['title']) ?> + </div> + + </div> + </div> + <?php endforeach ?> + </td> + <?php endforeach ?> + </tr> + </table> + +</section>
\ No newline at end of file |