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

- Buttons verkleinert und durch title Tag ergänzt

- Scrudu deaktiviert (in der Config auskommentiert)
parent e9004159
Branches
No related tags found
No related merge requests found
......@@ -120,6 +120,7 @@
padding: 4px;
}
a.info { border-bottom: 1px dotted;}
a.info span{ display: none; position: absolute; background: #fff; PADDING: 0.5em; box-shadow: 0 0 10px #aaa;}
a.info:hover span{ display: block; text-decoration: none;}
a.info:hover { text-decoration: none;}
......
......@@ -1047,14 +1047,29 @@ class project {
$sNext=$this->getNextPhase($sPhase);
$aLinkdata=array(
'default'=>array('icon'=>'icon-forward', 'class'=>''),
'accept'=>array('icon'=>'icon-forward', 'class'=>$sNext, 'label'=>'Accept '.$sPhase . ' und installieren auf [' .$sNext.']'),
'build'=>array('icon'=>'icon-forward', 'class'=>$sFirst, 'label'=>'neues Paket erstellen und in [' .$this->getNextPhase() . '] stellen.'),
'accept'=>array('icon'=>'icon-forward', 'class'=>$sNext,
'hint'=>'Accept '.$sPhase . ' und installieren auf [' .$sNext.']',
'label'=>'Accept'
),
'build'=>array('icon'=>'icon-forward', 'class'=>$sFirst,
'hint'=>'neues Paket erstellen und in [' .$this->getNextPhase() . '] stellen.',
'label'=>'Build'
),
'cleanup'=>array('icon'=>'icon-chevron-right', 'class'=>''),
'deploy'=>array('icon'=>'icon-forward', 'class'=>$sPhase, 'label'=>'Deploy der Queue von ['.$sPhase.']'),
'phase'=>array('icon'=>'icon-chevron-right', 'class'=>$sPhase, 'label'=>'Details zur Phase ['.$sPhase.']'),
'deploy'=>array('icon'=>'icon-forward', 'class'=>$sPhase,
'hint'=>'Deploy der Queue von ['.$sPhase.']',
'label'=>'Deploy'
),
'phase'=>array('icon'=>'icon-chevron-right', 'class'=>$sPhase,
'hint'=>'Details zur Phase ['.$sPhase.']',
'label'=>'Details'
),
);
$sClass=$sPhase;
$sIconClass=(array_key_exists($sFunction, $aLinkdata))?$aLinkdata[$sFunction]['icon']:$aLinkdata['default']['icon'];
$sHint=(
array_key_exists($sFunction, $aLinkdata) && array_key_exists("hint", $aLinkdata[$sFunction])
)?$aLinkdata[$sFunction]['hint']:"";
$sLabel=(
array_key_exists($sFunction, $aLinkdata) && array_key_exists("label", $aLinkdata[$sFunction])
)?$aLinkdata[$sFunction]['label']:$sFunction;
......@@ -1065,7 +1080,7 @@ class project {
$sLink="/deployment/".$this->_aConfig["id"]."/$sFunction/";
if ($sPhase) { $sLink.="$sPhase/"; }
return '<a href="'.$sLink.'" class="btn '.$sClass.'"><i class="'.$sIconClass.'"></i> '.$sLabel.'</a>';
return '<a href="'.$sLink.'" title="'.$sHint.'" class="btn '.$sClass.'"><i class="'.$sIconClass.'"></i> '.$sLabel.'</a>';
}
/**
......@@ -1150,12 +1165,12 @@ class project {
<i class="icon-calendar"></i> Build vom ' . date("d.m.Y H:i:s", strtotime($aData["date"])) . '<br>';
if ($bLong){
$sReturn.='<i class="icon-tag"></i> Revision: ' . $aData["revision"] . '<br>
Commit:<br><pre>' . $aData["message"] . '</pre>
<i class="icon-comment"></i> Commit-Message:<br><pre>' . $aData["message"] . '</pre>
<!-- Anm.: ' . $aTmp[$h]["remark"] . '<br> -->';
} else {
$sReturn.='<a href="#" class="info">Info<span>'
. '<i class="icon-tag"></i> Revision: ' . $aData["revision"] . '<br>'
. '<i class="icon-tag"></i> Message:<pre>' . $aData["message"] . '</pre>'
. '<i class="icon-comment"></i> Commit-Message:<pre>' . $aData["message"] . '</pre>'
. '</span></a>';
}
......
......@@ -132,7 +132,8 @@ class projectlist {
' . $oPrj->getDescription() . '<br>';
if ($oPrj->canAcceptPhase()){
$sNext=$oPrj->getNextPhase();
$sOut.='<a href="/deployment/'.$sPrj.'/build/" class="btn '.$sNext.'"><i class=" icon-forward"></i> Build f&uuml;r ['.$sNext.']</a><br>';
$sOut.=$oPrj->renderLink("build");
// $sOut.='<a href="/deployment/'.$sPrj.'/build/" class="btn '.$sNext.'"><i class=" icon-forward"></i> Build f&uuml;r ['.$sNext.']</a><br>';
}
$sOut.='</td>
' . $sOutPhases . '
......
......@@ -74,7 +74,7 @@ $aProjects=array(
),
"mmmu-sf2"=>array(
"label"=>"Morphomed Maintenance Utility",
"fileprefix"=>"elearning",
"fileprefix"=>"mmmu",
"description" => 'E-Learning, Morphomed Backend mit Symfony 2',
"contact" => 'Rafael Beck',
"build"=>array(
......@@ -90,16 +90,17 @@ $aProjects=array(
"phases"=>array(
"preview"=>array(
"url"=>"http://preview.e-learning.iml.unibe.ch/",
"url"=>"http://preview.mmmu.iml.unibe.ch/",
),
"stage"=>array(
// "url"=>"http://stage.scrudu.iml.unibe.ch/"
// "url"=>"http://stage.mmmu.iml.unibe.ch/",
),
"live"=>array(
// "url"=>"http://www.scrudu.iml.unibe.ch/"
),
),
),
/*
"scrudu"=>array(
"label"=>"Scrudu",
"fileprefix"=>"scrudu",
......@@ -128,6 +129,8 @@ $aProjects=array(
),
),
),
*
*/
);
// ----------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment