diff options
author | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-21 19:15:25 -0500 |
---|---|---|
committer | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-21 19:15:25 -0500 |
commit | f51aae9b16c5a80f97268f4ec2bbc206206c0b9d (patch) | |
tree | d2a5609450a1297a23d6cb6b175d2e5ba3a516b2 /templates | |
parent | 423801a0c54b1f6a07ee5cbd04c7c9682fc7e844 (diff) |
Show the task description only if not empty
Diffstat (limited to 'templates')
-rw-r--r-- | templates/task_show.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/task_show.php b/templates/task_show.php index e2789fca..99738f9c 100644 --- a/templates/task_show.php +++ b/templates/task_show.php @@ -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>
\ No newline at end of file |