summaryrefslogtreecommitdiff
path: root/app/Templates
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-06-20 21:59:59 -0300
committerFrédéric Guillot <fred@kanboard.net>2014-06-20 21:59:59 -0300
commitb513313c2fbfb0e5f15cab97ea74929b5c0d0a60 (patch)
treef96d6022f88fc22fc82f85e68a57eddafb423d39 /app/Templates
parent08621f99e6333c5e218724d173654bf225586d59 (diff)
Add a board selector instead of the list of projects
Diffstat (limited to 'app/Templates')
-rw-r--r--app/Templates/board_index.php9
-rw-r--r--app/Templates/layout.php8
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&amp;action=show&amp;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>