1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/layout.php

75 lines
3.5 KiB
PHP
Raw Normal View History

2014-07-20 12:26:15 +02:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="mobile-web-app-capable" content="yes">
2014-10-22 19:59:09 +02:00
<meta name="robots" content="noindex,nofollow">
2014-11-23 20:13:38 +01:00
<?php if (isset($board_public_refresh_interval)): ?>
2014-12-22 19:15:38 +01:00
<meta http-equiv="refresh" content="<?= $board_public_refresh_interval ?>">
2014-10-22 19:59:09 +02:00
<?php endif ?>
2014-07-20 12:26:15 +02:00
2014-10-22 19:59:09 +02:00
<?php if (! isset($not_editable)): ?>
2015-01-16 14:23:05 +01:00
<?= $this->js('assets/js/app.js') ?>
2014-10-22 19:59:09 +02:00
<?php endif ?>
2014-07-20 12:26:15 +02:00
2015-02-25 17:29:06 +01:00
<?= $this->css($this->u('app', 'colors'), false) ?>
2015-01-16 14:23:05 +01:00
<?= $this->css('assets/css/app.css') ?>
2014-07-20 12:26:15 +02:00
2015-04-21 17:56:16 +02:00
<?php if ($this->config->get('application_stylesheet')): ?>
<style><?= $this->config->get('application_stylesheet') ?></style>
<?php endif ?>
2014-07-20 12:26:15 +02:00
<link rel="icon" type="image/png" href="assets/img/favicon.png">
<link rel="apple-touch-icon" href="assets/img/touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/img/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/img/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/img/touch-icon-ipad-retina.png">
2015-01-16 14:23:05 +01:00
<title><?= isset($title) ? $this->e($title) : 'Kanboard' ?></title>
2014-07-20 12:26:15 +02:00
</head>
2015-02-25 17:29:06 +01:00
<body data-status-url="<?= $this->u('app', 'status') ?>"
data-login-url="<?= $this->u('user', 'login') ?>"
data-timezone="<?= $this->getTimezone() ?>"
data-js-lang="<?= $this->jsLang() ?>">
2014-10-22 19:59:09 +02:00
<?php if (isset($no_layout) && $no_layout): ?>
2014-07-20 12:26:15 +02:00
<?= $content_for_layout ?>
<?php else: ?>
<header>
<nav>
2015-04-21 17:56:16 +02:00
<h1><?= $this->a('K<span>B</span>', 'app', 'index', array(), false, 'logo', t('Dashboard')).' '.$this->summary($this->e($title)) ?>
<?php if (! empty($description)): ?>
<span class="column-tooltip" title='<?= $this->e($this->markdown($description)) ?>'>
<i class="fa fa-info-circle"></i>
</span>
<?php endif ?>
</h1>
2014-07-20 12:26:15 +02:00
<ul>
2014-10-22 19:59:09 +02:00
<?php if (isset($board_selector) && ! empty($board_selector)): ?>
2014-07-20 12:26:15 +02:00
<li>
2015-04-21 17:56:16 +02:00
<select id="board-selector" data-notfound="<?= t('No results match:') ?>" data-placeholder="<?= t('Display another project') ?>" data-board-url="<?= $this->u('board', 'show', array('project_id' => 'PROJECT_ID')) ?>">
2014-07-20 12:26:15 +02:00
<option value=""></option>
<?php foreach($board_selector as $board_id => $board_name): ?>
2015-01-16 14:23:05 +01:00
<option value="<?= $board_id ?>"><?= $this->e($board_name) ?></option>
2014-07-20 12:26:15 +02:00
<?php endforeach ?>
</select>
</li>
<?php endif ?>
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Logout'), 'user', 'logout', array(), true) ?>
<span class="username hide-tablet">(<?= $this->a($this->e($this->getFullname()), 'user', 'show', array('user_id' => $this->userSession->getId())) ?>)</span>
2014-07-20 12:26:15 +02:00
</li>
</ul>
</nav>
</header>
<section class="page">
2015-01-16 14:23:05 +01:00
<?= $this->flash('<div class="alert alert-success alert-fade-out">%s</div>') ?>
<?= $this->flashError('<div class="alert alert-error">%s</div>') ?>
2014-07-20 12:26:15 +02:00
<?= $content_for_layout ?>
</section>
<?php endif ?>
</body>
</html>