1<div class="page-header">
2    <h2><?= t('Summary') ?></h2>
3</div>
4<ul class="panel">
5    <li><strong><?= $project['is_active'] ? t('This project is open') : t('This project is closed') ?></strong></li>
6
7    <?php if ($project['owner_id'] > 0): ?>
8        <li><?= t('Project owner: ') ?><strong><?= $this->text->e($project['owner_name'] ?: $project['owner_username']) ?></strong></li>
9    <?php endif ?>
10
11    <?php if ($project['is_private']): ?>
12        <li><i class="fa fa-lock"></i> <?= t('This project is personal') ?></li>
13    <?php endif ?>
14
15    <?php if ($project['is_public']): ?>
16        <li><?= $this->url->icon('share-alt', t('Public link'), 'BoardViewController', 'readonly', array('token' => $project['token']), false, '', '', true) ?></li>
17        <li><?= $this->url->icon('rss-square', t('RSS feed'), 'FeedController', 'project', array('token' => $project['token']), false, '', '', true) ?></li>
18        <li><?= $this->url->icon('calendar', t('iCal feed'), 'ICalendarController', 'project', array('token' => $project['token'])) ?></li>
19    <?php else: ?>
20        <li><?= t('Public access disabled') ?></li>
21    <?php endif ?>
22
23    <?php if ($project['last_modified']): ?>
24        <li><?= t('Modified:').' '.$this->dt->datetime($project['last_modified']) ?></li>
25    <?php endif ?>
26
27    <?php if ($project['start_date']): ?>
28        <li><?= t('Start date: ').$this->dt->date($project['start_date']) ?></li>
29    <?php endif ?>
30
31    <?php if ($project['end_date']): ?>
32        <li><?= t('End date: ').$this->dt->date($project['end_date']) ?></li>
33    <?php endif ?>
34
35    <?php if ($project['per_swimlane_task_limits']): ?>
36        <li><?= t('Column task limits are applied to each swimlane individually') ?></li>
37    <?php else: ?>
38        <li><?= t('Column task limits are applied across swimlanes') ?></li>
39    <?php endif ?>
40
41    <li><?= t('Task limit: ') ?><?= $project['task_limit'] ? $project['task_limit'] : '∞' ?></li>
42</ul>
43
44<?php if (! empty($project['description'])): ?>
45    <div class="page-header">
46        <h2><?= t('Description') ?></h2>
47    </div>
48
49    <article class="markdown">
50        <?= $this->text->markdown($project['description']) ?>
51    </article>
52<?php endif ?>
53
54<div class="page-header">
55    <h2><?= t('Columns') ?></h2>
56</div>
57<?php if (empty($columns)): ?>
58    <p class="alert alert-error"><?= t('Your board doesn\'t have any columns!') ?></p>
59<?php else: ?>
60    <table class="table-striped table-scrolling">
61        <thead>
62        <tr>
63            <th class="column-40"><?= t('Column') ?></th>
64            <th class="column-10"><?= t('Task limit') ?></th>
65            <th class="column-20"><?= t('Visible on dashboard') ?></th>
66            <th class="column-15"><?= t('Open tasks') ?></th>
67            <th class="column-15"><?= t('Closed tasks') ?></th>
68        </tr>
69        </thead>
70        <tbody>
71        <?php foreach ($columns as $column): ?>
72            <tr data-column-id="<?= $column['id'] ?>">
73                <td>
74                    <?= $this->text->e($column['title']) ?>
75                    <?php if (! empty($column['description'])): ?>
76                        <?= $this->app->tooltipMarkdown($column['description']) ?>
77                    <?php endif ?>
78                </td>
79                <td>
80                    <?= $column['task_limit'] ?: '∞' ?>
81                </td>
82                <td>
83                    <?= $column['hide_in_dashboard'] == 0 ? t('Yes') : t('No') ?>
84                </td>
85                <td>
86                    <?= $column['nb_open_tasks'] ?>
87                </td>
88                <td>
89                    <?= $column['nb_closed_tasks'] ?>
90                </td>
91            </tr>
92        <?php endforeach ?>
93        </tbody>
94    </table>
95<?php endif ?>
96