|
@@ -21,59 +21,56 @@ if (isset($project) && isset($project["id"])) {
|
|
|
|
|
|
<?php if (isset($branding["enabled"]) && $branding["enabled"] == 1 && !empty($branding["logo_url"])): ?>
|
|
|
<style>
|
|
|
-header{
|
|
|
-background-color:<?= $branding['background_color'] ?>;
|
|
|
-}
|
|
|
-.project-header{
|
|
|
- background-color:<?= $branding['second_background_color'] ?>;
|
|
|
-}
|
|
|
-h1 {
|
|
|
- color:<?= $branding['foreground_color'] ?>;
|
|
|
- background-color:<?= $branding['background_color'] ?>;
|
|
|
-}
|
|
|
-span.logo a{
|
|
|
-vertical-align: middle;
|
|
|
-margin-right:5px;
|
|
|
-opacity:1;
|
|
|
-}
|
|
|
+ .page {
|
|
|
+ margin:0 auto;
|
|
|
+ }
|
|
|
+ header{
|
|
|
+ background-color:<?= !empty($branding["background_color"]) ? $branding["background_color"] : "transparent" ?> !important;
|
|
|
+ margin-bottom:0;
|
|
|
+ }
|
|
|
+ .project-header{
|
|
|
+ background-color:<?= !empty($branding["second_background_color"]) ? $branding["second_background_color"] : "transparent" ?>;
|
|
|
+ padding:.5em;
|
|
|
+ height: 1.5em;
|
|
|
+ }
|
|
|
+ h1 {
|
|
|
+ color:<?= !empty($branding["foreground_color"]) ? $branding["foreground_color"] : "initial" ?>;
|
|
|
+ background-color:<?= !empty($branding["background_color"]) ? $branding["background_color"] : "transparent" ?>;
|
|
|
+ }
|
|
|
+ span.logo a{
|
|
|
+ vertical-align: middle;
|
|
|
+ margin-right:5px;
|
|
|
+ opacity:1;
|
|
|
+ }
|
|
|
</style>
|
|
|
<?php endif ?>
|
|
|
|
|
|
-
|
|
|
<header>
|
|
|
<div class="title-container">
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-<h1>
|
|
|
- <span class="logo">
|
|
|
- <?php if (isset($branding["enabled"]) && $branding["enabled"] == 1 && !empty($branding["logo_url"])): ?>
|
|
|
-
|
|
|
+ <h1>
|
|
|
+ <span class="logo">
|
|
|
+ <?php if (isset($branding["enabled"]) && $branding["enabled"] == 1 && !empty($branding["logo_url"])): ?>
|
|
|
<a href="<?= $this->url->to('DashboardController', 'show') ?>">
|
|
|
<img src="<?= $branding['logo_url'] ?>" alt="<?= t('Logo') ?>" height="32">
|
|
|
- </a>
|
|
|
-
|
|
|
- <?php else: ?>
|
|
|
- <?= $this->url->link('K<span>B</span>', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
|
|
|
- <?php endif ?>
|
|
|
- </span>
|
|
|
- <span class="title">
|
|
|
- <?php if (! empty($project) && ! empty($task)): ?>
|
|
|
- <?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
|
|
|
- <?php else: ?>
|
|
|
- <?= $this->text->e($title) ?>
|
|
|
- <?php if (! empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
|
|
|
- (<span><?= intval($project['nb_active_tasks']) ?></span> / <span title="<?= t('Task limit') ?>"><span class="ui-helper-hidden-accessible"><?= t('Task limit') ?> </span><?= $this->text->e($project['task_limit']) ?></span>)
|
|
|
- <?php endif ?>
|
|
|
- <?php endif ?>
|
|
|
- </span>
|
|
|
- <?php if (! empty($description)): ?>
|
|
|
+ </a>
|
|
|
+ <?php else: ?>
|
|
|
+ <?= $this->url->link("K<span>B</span>", "DashboardController", "show", [], false, "", t("Dashboard")) ?>
|
|
|
+ <?php endif ?>
|
|
|
+ </span>
|
|
|
+ <span class="title">
|
|
|
+ <?php if (! empty($project) && ! empty($task)): ?>
|
|
|
+ <?= $this->url->link($this->text->e($project["name"]), "BoardViewController", "show", ["project_id" => $project["id"]]) ?>
|
|
|
+ <?php else: ?>
|
|
|
+ <?= $this->text->e($title) ?>
|
|
|
+ <?php if (! empty($project) && $project["task_limit"] && array_key_exists("nb_active_tasks", $project)): ?>
|
|
|
+ (<span><?= intval($project["nb_active_tasks"]) ?></span> / <span title="<?= t('Task limit') ?>"><span class="ui-helper-hidden-accessible"><?= t("Task limit") ?> </span><?= $this->text->e($project["task_limit"]) ?></span>)
|
|
|
+ <?php endif ?>
|
|
|
+ <?php endif ?>
|
|
|
+ </span>
|
|
|
+ <?php if (! empty($description)): ?>
|
|
|
<?= $this->app->tooltipHTML($description) ?>
|
|
|
- <?php endif ?>
|
|
|
-</h1>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ <?php endif ?>
|
|
|
+ </h1>
|
|
|
</div>
|
|
|
<div class="board-selector-container">
|
|
|
<?php if (! empty($board_selector)): ?>
|