summaryrefslogtreecommitdiff
path: root/app/Template/task/show_description.php
blob: 253121495073cbd8c3c237263985c3e11cff4c26 (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
<?php if (! empty($task['description'])): ?>
    <div id="description" class="task-show-section">
        <div class="page-header">
            <h2><?= t('Description') ?></h2>
        </div>

        <article class="markdown task-show-description">
            <?php if (! isset($is_public)): ?>
                <?= Helper\markdown($task['description']) ?>
            <?php else: ?>
                <?= Helper\markdown(
                    $task['description'],
                    array(
                        'controller' => 'task',
                        'action' => 'readonly',
                        'params' => array(
                            'token' => $project['token']
                        )
                    )
                ) ?>
            <?php endif ?>
        </article>
    </div>
<?php endif ?>