Skip to content
Snippets Groups Projects
Commit aac01199 authored by hahn's avatar hahn
Browse files

- Datum statt Revision-Hash anzeigen

parent c90dfecc
No related branches found
No related tags found
No related merge requests found
...@@ -100,8 +100,8 @@ function getTopArea() { ...@@ -100,8 +100,8 @@ function getTopArea() {
$sJsonfile = $_SERVER["DOCUMENT_ROOT"] . "ci-webgui.json"; $sJsonfile = $_SERVER["DOCUMENT_ROOT"] . "ci-webgui.json";
if (file_exists($sJsonfile)) { if (file_exists($sJsonfile)) {
$aJson = json_decode(file_get_contents($sJsonfile), true); $aJson = json_decode(file_get_contents($sJsonfile), true);
if (array_key_exists("revision", $aJson)) if (array_key_exists("date", $aJson))
$sMyRev = $aJson["revision"]; $sMyRev = $aJson["date"];
} }
$sPhase = '(unknown)'; $sPhase = '(unknown)';
$aPhases = array( $aPhases = array(
...@@ -116,7 +116,7 @@ function getTopArea() { ...@@ -116,7 +116,7 @@ function getTopArea() {
$sWikiBaseUrl = 'https://secure.iml.unibe.ch/wiki/doku.php'; $sWikiBaseUrl = 'https://secure.iml.unibe.ch/wiki/doku.php';
$sReturn = ' $sReturn = '
<div class="navbar"> <div class="navbar">
<span class="version ' . $sPhase . '">' . $sPhase . ' . ' . $sMyRev . '</span> <span class="version ' . $sPhase . '">' . $sPhase . ' :: ' . $sMyRev . '</span>
<div class="navbar-inner"> <div class="navbar-inner">
<span class="brand">IML Deployment GUI</span> <span class="brand">IML Deployment GUI</span>
<ul class="nav"> <ul class="nav">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment