summaryrefslogtreecommitdiff
path: root/app/Templates/layout.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-10 21:13:13 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-10 21:13:13 +0200
commit917e6cab7469c408babebde18848824765d551fa (patch)
treecedfcca40863b6ea14fd6b83dbc5e71199d517fb /app/Templates/layout.php
parentbb1a9f52caa4e6e072d61d97629ce17dc3261100 (diff)
Improve user interface for tablets
Diffstat (limited to 'app/Templates/layout.php')
-rw-r--r--app/Templates/layout.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Templates/layout.php b/app/Templates/layout.php
index 99382ae1..f2082db7 100644
--- a/app/Templates/layout.php
+++ b/app/Templates/layout.php
@@ -38,7 +38,7 @@
<a class="logo" href="?">kanboard</a>
<ul>
- <?php if (isset($board_selector)): ?>
+ <?php if (isset($board_selector) && ! empty($board_selector)): ?>
<li>
<select id="board-selector" data-placeholder="<?= t('Display another project') ?>">
<option value=""></option>
@@ -58,13 +58,13 @@
<a href="?controller=user"><?= t('Users') ?></a>
</li>
<?php if (Helper\is_admin()): ?>
- <li <?= isset($menu) && $menu === 'config' ? 'class="active"' : '' ?>>
+ <li class="hide-tablet <?= isset($menu) && $menu === 'config' ? 'active' : '' ?>">
<a href="?controller=config"><?= t('Settings') ?></a>
</li>
<?php endif ?>
<li>
<a href="?controller=user&amp;action=logout<?= Helper\param_csrf() ?>"><?= t('Logout') ?></a>
- (<a class="username" href="?controller=user&amp;action=show&amp;user_id=<?= Helper\get_user_id() ?>"><?= Helper\escape(Helper\get_username()) ?></a>)
+ <span class="username">(<a href="?controller=user&amp;action=show&amp;user_id=<?= Helper\get_user_id() ?>"><?= Helper\escape(Helper\get_username()) ?></a>)</span>
</li>
</ul>
</nav>