diff options
Diffstat (limited to 'app/Templates')
-rw-r--r-- | app/Templates/board_index.php | 9 | ||||
-rw-r--r-- | app/Templates/layout.php | 8 |
2 files changed, 7 insertions, 10 deletions
diff --git a/app/Templates/board_index.php b/app/Templates/board_index.php index 38fb985c..4b9b107c 100644 --- a/app/Templates/board_index.php +++ b/app/Templates/board_index.php @@ -4,15 +4,6 @@ <h2> <?= t('Project "%s"', $current_project_name) ?> </h2> - <ul> - <?php foreach ($projects as $project_id => $project_name): ?> - <?php if ($project_id != $current_project_id): ?> - <li> - <a href="?controller=board&action=show&project_id=<?= $project_id ?>"><?= Helper\escape($project_name) ?></a> - </li> - <?php endif ?> - <?php endforeach ?> - </ul> </div> <div class="project-menu"> diff --git a/app/Templates/layout.php b/app/Templates/layout.php index 62377588..b45ddb96 100644 --- a/app/Templates/layout.php +++ b/app/Templates/layout.php @@ -31,8 +31,14 @@ <?php else: ?> <header> <nav> - <a class="logo" href="?">kan<span>board</span></a> + <a class="logo" href="?">kanboard</a> + <ul> + <?php if (isset($board_selector)): ?> + <li> + <?= Helper\form_select('board-selector', $board_selector) ?> + </li> + <?php endif ?> <li <?= isset($menu) && $menu === 'boards' ? 'class="active"' : '' ?>> <a href="?controller=board"><?= t('Boards') ?></a> </li> |