2014-11-23 20:13:38 +01:00
|
|
|
<?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)): ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->markdown(
|
|
|
|
$task['description'],
|
|
|
|
array(
|
|
|
|
'controller' => 'task',
|
|
|
|
'action' => 'show',
|
|
|
|
'params' => array(
|
|
|
|
'project_id' => $task['project_id']
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) ?>
|
2014-11-23 20:13:38 +01:00
|
|
|
<?php else: ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
<?= $this->markdown(
|
2014-11-23 20:13:38 +01:00
|
|
|
$task['description'],
|
|
|
|
array(
|
|
|
|
'controller' => 'task',
|
|
|
|
'action' => 'readonly',
|
|
|
|
'params' => array(
|
|
|
|
'token' => $project['token']
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) ?>
|
|
|
|
<?php endif ?>
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|