summaryrefslogtreecommitdiff
path: root/app/Templates/task_sidebar.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Templates/task_sidebar.php')
-rw-r--r--app/Templates/task_sidebar.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Templates/task_sidebar.php b/app/Templates/task_sidebar.php
index 4d363fec..4cffd5fa 100644
--- a/app/Templates/task_sidebar.php
+++ b/app/Templates/task_sidebar.php
@@ -18,7 +18,9 @@
<a href="?controller=task&amp;action=open&amp;task_id=<?= $task['id'] ?>"><?= t('Open this task') ?></a>
<?php endif ?>
</li>
- <li><a href="?controller=task&amp;action=remove&amp;task_id=<?= $task['id'] ?>"><?= t('Remove') ?></a></li>
+ <?php if (! $hide_remove_menu): ?>
+ <li><a href="?controller=task&amp;action=remove&amp;task_id=<?= $task['id'] ?>"><?= t('Remove') ?></a></li>
+ <?php endif ?>
</ul>
</div>
</div> \ No newline at end of file