mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
53 lines
No EOL
2.6 KiB
PHP
53 lines
No EOL
2.6 KiB
PHP
<header>
|
|
<nav>
|
|
<h1>
|
|
<span class="logo">
|
|
<?= $this->url->link('K<span>B</span>', 'app', 'index', array(), false, '', t('Dashboard')) ?>
|
|
</span>
|
|
<span class="title">
|
|
<?= $this->e($title) ?>
|
|
</span>
|
|
<?php if (! empty($description)): ?>
|
|
<span class="tooltip" title='<?= $this->e($this->text->markdown($description)) ?>'>
|
|
<i class="fa fa-info-circle"></i>
|
|
</span>
|
|
<?php endif ?>
|
|
</h1>
|
|
<ul>
|
|
<?php if (isset($board_selector) && ! empty($board_selector)): ?>
|
|
<li>
|
|
<select id="board-selector"
|
|
class="chosen-select select-auto-redirect"
|
|
tabindex="-1"
|
|
data-search-threshold="0"
|
|
data-notfound="<?= t('No results match:') ?>"
|
|
data-placeholder="<?= t('Display another project') ?>"
|
|
data-redirect-regex="PROJECT_ID"
|
|
data-redirect-url="<?= $this->url->href('board', 'show', array('project_id' => 'PROJECT_ID')) ?>">
|
|
<option value=""></option>
|
|
<?php foreach ($board_selector as $board_id => $board_name): ?>
|
|
<option value="<?= $board_id ?>"><?= $this->e($board_name) ?></option>
|
|
<?php endforeach ?>
|
|
</select>
|
|
</li>
|
|
<?php endif ?>
|
|
<li>
|
|
<?php if ($this->user->hasNotifications()): ?>
|
|
<span class="notification">
|
|
<?= $this->url->link('<i class="fa fa-bell web-notification-icon"></i>', 'app', 'notifications', array('user_id' => $this->user->getId()), false, '', t('Unread notifications')) ?>
|
|
</span>
|
|
<?php endif ?>
|
|
|
|
<span class="dropdown">
|
|
<a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i></a>
|
|
<ul>
|
|
<li class="no-hover"><strong><?= $this->e($this->user->getFullname()) ?></strong></li>
|
|
<li><?= $this->url->link(t('My dashboard'), 'app', 'index', array('user_id' => $this->user->getId())) ?></li>
|
|
<li><?= $this->url->link(t('My profile'), 'user', 'show', array('user_id' => $this->user->getId())) ?></li>
|
|
<li><?= $this->url->link(t('Logout'), 'auth', 'logout') ?></li>
|
|
</ul>
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|