sirjeff 4 viikkoa sitten
vanhempi
commit
b536ea9f84
1 muutettua tiedostoa jossa 42 lisäystä ja 3 poistoa
  1. 42 3
      Template/header.php

+ 42 - 3
Template/header.php

@@ -19,15 +19,54 @@ if (isset($project) && isset($project["id"])) {
 }
 ?>
 
+<?php if (isset($branding["enabled"]) && $branding["enabled"] == 1 && !empty($branding["logo_url"])): ?>
+<style>
+h1 {
+color:<?= $branding['accent_color'] ?>;
+}
+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"])): ?>
-      <a href="<?= $this->url->to('DashboardController', 'show') ?>"  style="border-bottom: 2px solid <?= $branding['accent_color'] ?>;">
-        <img src="<?= $branding['logo_url'] ?>" alt="<?= t('Logo') ?>" height="30">
+
+      <a href="<?= $this->url->to('DashboardController', 'show') ?>">
+        <img src="<?= $branding['logo_url'] ?>" alt="<?= t('Logo') ?>" height="32">
       </a>
+          
     <?php else: ?>
-        <?= $_title ?>
+      <?= $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)): ?>
+        <?= $this->app->tooltipHTML($description) ?>
     <?php endif ?>
+</h1>
+
+
+
   </div>
   <div class="board-selector-container">
     <?php if (! empty($board_selector)): ?>