summaryrefslogtreecommitdiff
path: root/templates/task_show.php
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-02-21 19:15:25 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-02-21 19:15:25 -0500
commitf51aae9b16c5a80f97268f4ec2bbc206206c0b9d (patch)
treed2a5609450a1297a23d6cb6b175d2e5ba3a516b2 /templates/task_show.php
parent423801a0c54b1f6a07ee5cbd04c7c9682fc7e844 (diff)
Show the task description only if not empty
Diffstat (limited to 'templates/task_show.php')
-rw-r--r--templates/task_show.php10
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