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

- footer navigation in actions was simplified

- fetch output instead of fille $sPhpOut
- phase specific colors were moved from (hartcoded) css to config
- ajax test No. 15

!!! DO NOT DEPLOY ON LIVE !!!
parent cae2d0e8
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,26 @@ $aConfig=array(
'phases'=>array(
"preview"=>array(),
"stage"=>array(),
"preview"=>array(
'css'=>array(
'bgdark'=>'background:#358; background: linear-gradient(#ddd,#358,#358); ',
'bglight'=>'background:#f4f8ff; color:#333; background: rgba(210,220,255, 0.4);',
'bgbutton'=>'background:#ccf;',
),
),
"stage"=>array(
'css'=>array(
'bgdark'=>'background:#388; background: linear-gradient(#ddd,#388,#388); ',
'bglight'=>'background:#f4ffff; color:#333; background: rgba(180,230,230, 0.4);',
'bgbutton'=>'background:#cff;',
),
),
"live"=>array(
'css'=>array(
'bgdark'=>'background:#3a3; background: linear-gradient(#ddd,#3a3,#3a3);',
'bglight'=>'background:#f0fff0; color:#333; background: rgba(180,255,180, 0.4);',
'bgbutton'=>'background:#cfc;',
),
// wenn deploytimes existiert, dann wird nach dem Deploy das Paket
// in einer Queue zurueckgehalten
"deploytimes"=>array('/(Mon|Tue|Wed|Thu)\ 14\:/'),
......
......@@ -46,6 +46,14 @@ ob_end_clean();
// ------ Ausgabe
$sHeader='<style>';
foreach ($aConfig["phases"] as $sPhase => $aData){
$sHeader.=array_key_exists("bgdark", $aData["css"])?'th.'.$sPhase.'{'.$aData["css"]["bgdark"].'}':'';
$sHeader.=array_key_exists("bglight", $aData["css"])?'td.'.$sPhase.'{'.$aData["css"]["bglight"].'}':'';
$sHeader.=array_key_exists("bgbutton", $aData["css"])?'.'.$sPhase.'{'.$aData["css"]["bgbutton"].'}':'';
}
$sHeader.='</style>';
$sPhpOut = '
<div id="header" style="display: none;">
IML DEPLOYMENT GUI
......@@ -64,6 +72,7 @@ $sPhpOut = '
$oPage = new Page();
$oPage->addResponseHeader("Pragma: no-cache");
$oPage->setOutputtype('html');
$oPage->setHeader($sHeader);
$oPage->addJsOnReady('');
$oPage->setContent($sPhpOut);
......
......@@ -96,19 +96,19 @@ thead{font-size: 130%;}
#tbloverview td{}
th.prj{background:#f8f8f8;}
th.versioncontrol{background: #ccc;}
th.preview{background:#358; background: linear-gradient(#ddd,#358,#358); color:#eee; }
th.stage{background:#388; background: linear-gradient(#ddd,#388,#388); color:#eee; }
th.live{background:#3a3; background: linear-gradient(#ddd,#3a3,#3a3); color:#eee; }
th.preview{color:#eee; }
th.stage{color:#eee; }
th.live{color:#eee; }
tr{background: linear-gradient(#fff,#fff,#fff,#fff,#eee);}
tr:hover{background:#ddd; background: linear-gradient(#ddd,#eee,#ddd);}
td.preview{background:#f4f8ff; color:#333; background: rgba(210,220,255, 0.4);}
td.stage{background:#f4ffff; color:#333; background: rgba(180,230,230, 0.4);}
td.live{background:#f0fff0; color:#333; background: rgba(180,255,180, 0.4);}
td.preview{}
td.stage{}
td.live{}
.dev{background:#ccc;}
.preview{background:#ccf;}
.stage{background:#cff;}
.live{background:#cfc;}
.preview{}
.stage{}
.live{}
.preview, .stage, .live{
padding: 4px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment