diff options
Diffstat (limited to 'app/Templates')
-rw-r--r-- | app/Templates/task_layout.php | 2 | ||||
-rw-r--r-- | app/Templates/task_sidebar.php | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/Templates/task_layout.php b/app/Templates/task_layout.php index 96c45608..ca0a413f 100644 --- a/app/Templates/task_layout.php +++ b/app/Templates/task_layout.php @@ -7,7 +7,7 @@ </div> <section class="task-show" id="task-section"> - <?= Helper\template('task_sidebar', array('task' => $task)) ?> + <?= Helper\template('task_sidebar', array('task' => $task, 'hide_remove_menu' => isset($hide_remove_menu))) ?> <div class="task-show-main"> <?= $task_content_for_layout ?> 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&action=open&task_id=<?= $task['id'] ?>"><?= t('Open this task') ?></a> <?php endif ?> </li> - <li><a href="?controller=task&action=remove&task_id=<?= $task['id'] ?>"><?= t('Remove') ?></a></li> + <?php if (! $hide_remove_menu): ?> + <li><a href="?controller=task&action=remove&task_id=<?= $task['id'] ?>"><?= t('Remove') ?></a></li> + <?php endif ?> </ul> </div> </div>
\ No newline at end of file |