Show the task description only if not empty

This commit is contained in:
Frédéric Guillot 2014-02-21 19:15:25 -05:00
parent 423801a0c5
commit f51aae9b16
1 changed files with 6 additions and 4 deletions

View File

@ -45,10 +45,12 @@
</ul>
</article>
<h3><?= t('Description') ?></h3>
<article id="description">
<?= Helper\markdown($task['description']) ?: t('There is no description.') ?>
</article>
<?php if ($task['description']): ?>
<h3><?= t('Description') ?></h3>
<article id="description">
<?= Helper\markdown($task['description']) ?: t('There is no description.') ?>
</article>
<?php endif ?>
</section>
</section>