summaryrefslogtreecommitdiff
path: root/app/Template/board/show.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-15 18:25:54 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-15 18:25:54 -0500
commit794f7f7645f7949705f47b95e88fc5d292bb0a7d (patch)
treef4d0187e0701cd143859f5ef5fe6647b7f6df77e /app/Template/board/show.php
parent2fd2fe6e884ad912da088340f413f3477f54b505 (diff)
Add board horizontal scrolling
Diffstat (limited to 'app/Template/board/show.php')
-rw-r--r--app/Template/board/show.php52
1 files changed, 27 insertions, 25 deletions
diff --git a/app/Template/board/show.php b/app/Template/board/show.php
index dc524737..9fa95dbd 100644
--- a/app/Template/board/show.php
+++ b/app/Template/board/show.php
@@ -1,27 +1,29 @@
-<?php if (isset($not_editable)): ?>
- <table id="board">
-<?php else: ?>
- <table id="board"
- data-project-id="<?= $project['id'] ?>"
- data-check-interval="<?= $board_private_refresh_interval ?>"
- data-save-url="<?= $this->u('board', 'save', array('project_id' => $project['id'])) ?>"
- data-check-url="<?= $this->u('board', 'check', array('project_id' => $project['id'], 'timestamp' => time())) ?>"
- >
-<?php endif ?>
-
-<?php foreach ($swimlanes as $swimlane): ?>
- <?php if (empty($swimlane['columns'])): ?>
- <p class="alert alert-error"><?= t('There is no column in your project!') ?></p>
- <?php break ?>
+<div id="board-container">
+ <?php if (isset($not_editable)): ?>
+ <table id="board">
<?php else: ?>
- <?= $this->render('board/swimlane', array(
- 'project' => $project,
- 'swimlane' => $swimlane,
- 'board_highlight_period' => $board_highlight_period,
- 'categories' => $categories,
- 'hide_swimlane' => count($swimlanes) === 1,
- 'not_editable' => isset($not_editable),
- )) ?>
+ <table id="board"
+ data-project-id="<?= $project['id'] ?>"
+ data-check-interval="<?= $board_private_refresh_interval ?>"
+ data-save-url="<?= $this->u('board', 'save', array('project_id' => $project['id'])) ?>"
+ data-check-url="<?= $this->u('board', 'check', array('project_id' => $project['id'], 'timestamp' => time())) ?>"
+ >
<?php endif ?>
-<?php endforeach ?>
-</table> \ No newline at end of file
+
+ <?php foreach ($swimlanes as $swimlane): ?>
+ <?php if (empty($swimlane['columns'])): ?>
+ <p class="alert alert-error"><?= t('There is no column in your project!') ?></p>
+ <?php break ?>
+ <?php else: ?>
+ <?= $this->render('board/swimlane', array(
+ 'project' => $project,
+ 'swimlane' => $swimlane,
+ 'board_highlight_period' => $board_highlight_period,
+ 'categories' => $categories,
+ 'hide_swimlane' => count($swimlanes) === 1,
+ 'not_editable' => isset($not_editable),
+ )) ?>
+ <?php endif ?>
+ <?php endforeach ?>
+ </table>
+</div> \ No newline at end of file