From e44b0cd113d717832d515b3d514707b5565fd903 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Mon, 19 Dec 2022 15:56:25 +0100
Subject: [PATCH] v2.0.2 update brand; link to repo, update counter

---
 classes/cronlog-renderer.class.php | 5 +++--
 config/page_replacements.php       | 5 +++--
 index.php                          | 3 ++-
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/classes/cronlog-renderer.class.php b/classes/cronlog-renderer.class.php
index 6e8c353..6ae8eae 100644
--- a/classes/cronlog-renderer.class.php
+++ b/classes/cronlog-renderer.class.php
@@ -198,8 +198,9 @@ class cronlogrenderer extends cronlog{
                 . '</p>'
                 . '<div>'
                 . $this->_renderAccessAndAge($iLast)
-                . 'gesamt: <strong>' . count($aData).'</strong>'
-                . ($iErrors ? ' (Fehler: <strong>' . $iErrors.'</strong>... OK: <strong>' . $iOK.'</strong>)' : '')
+                . ($iErrors ? '<span class="btn bg-danger">' . $iErrors.'</span> ' : '')
+                . ( $iOK ? '<span class="btn bg-success">' . $iOK.'</span>' : '') 
+                . ($iErrors && $iOK ? ' ... gesamt: <span class="btn bg-gray">' . count($aData).'</span>' : '' )
                 . '<br>'
                 . '</div>'
             . '<table id="'.$sIdTable.'" class="table-striped">'
diff --git a/config/page_replacements.php b/config/page_replacements.php
index ad50fc4..bae687d 100644
--- a/config/page_replacements.php
+++ b/config/page_replacements.php
@@ -8,7 +8,8 @@ return [
     '{{PAGE_LAYOUT}}'  =>'layout-navbar-fixed layout-fixed sidebar-mini',
     '{{NAVI_TOP}}'     =>'<nav class="main-header navbar navbar-expand navbar-white navbar-light"><ul class="navbar-nav" id="instances"></ul></nav>',
     '{{BRAND}}'        =>'<a href="/index.php" class="brand-link bg-red">
-                            CronLog viewer
+                            <i class="fas fa-clipboard-list"></i> 
+                            Cron<span class="brand-text">Log viewer</span>
                             <span class="brand-text font-weight-light">v2</span>
                             </a>',
     '{{NAVI_LEFT}}'    =>'
@@ -49,7 +50,7 @@ return [
                             <br>
 
                             <div class="sidebar-infobox bottom">
-                                <i class="fas fa-info-circle"></i> CronLog viewer v'.APP_VERSION.'<br>
+                                <i class="fas fa-info-circle"></i> <a href="'.APP_REPO_URL.'" target="_blank">CronLog viewer v'.APP_VERSION.'</a><br>
                                 <i class="fab fa-php"></i> PHP '.PHP_VERSION.'<br>
                             </div>
                             ',
diff --git a/index.php b/index.php
index a6fdd28..88c93e7 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,7 @@
 <?php
 
-define("APP_VERSION", '2.0.1');
+define("APP_VERSION", '2.0.2');
+define("APP_REPO_URL", 'https://git-repo.iml.unibe.ch/iml-open-source/cronlog-viewer');
 
 require_once('classes/render-adminlte.class.php');
 $renderAdminLTE=new renderadminlte();
-- 
GitLab