summaryrefslogtreecommitdiff
path: root/templates/board_public.php
blob: d01bae0f2bea11094c39221c269c0a4c4862a581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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>