Skip to content
Snippets Groups Projects
Commit d53c2c22 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

implment output of project errors

parent c958ea94
No related branches found
No related tags found
1 merge request!556559 handle corrupt config
...@@ -75,6 +75,8 @@ class projectlist extends base{ ...@@ -75,6 +75,8 @@ class projectlist extends base{
$sDivInprogress='<div class="progressinprogress" title="'.t("progress-inprogress").'">'.$oHtml->getIcon('refresh').t("progress-inprogress").'</div>'; $sDivInprogress='<div class="progressinprogress" title="'.t("progress-inprogress").'">'.$oHtml->getIcon('refresh').t("progress-inprogress").'</div>';
$sDivHasqueue='<div class="progresshasqueue" title="'.t("progress-hasqueue").'">'.$oHtml->getIcon('waiting').t("progress-hasqueue").'</div>'; $sDivHasqueue='<div class="progresshasqueue" title="'.t("progress-hasqueue").'">'.$oHtml->getIcon('waiting').t("progress-hasqueue").'</div>';
$sErrors='';
// foreach (array_keys($this->_aPhases) as $sPhase) { // foreach (array_keys($this->_aPhases) as $sPhase) {
foreach (array_keys($oPrj1->getPhases()) as $sPhase) { foreach (array_keys($oPrj1->getPhases()) as $sPhase) {
$sPhaseFilter.='<option value="' . $sPhase . '" >' . $sPhase . '</option>'; $sPhaseFilter.='<option value="' . $sPhase . '" >' . $sPhase . '</option>';
...@@ -132,6 +134,8 @@ class projectlist extends base{ ...@@ -132,6 +134,8 @@ class projectlist extends base{
} }
$sErrors.=$oPrj->renderErrorBoxes();
$sOut2 .= '<div class="' . $sClasses . ' prjbox"><div class="title">' $sOut2 .= '<div class="' . $sClasses . ' prjbox"><div class="title">'
.$oHtml->getLink(array( .$oHtml->getLink(array(
'href'=>'#', 'href'=>'#',
...@@ -534,6 +538,7 @@ class projectlist extends base{ ...@@ -534,6 +538,7 @@ class projectlist extends base{
</div> </div>
<br> <br>
'.$sErrors.'
<div class="view viewsimple"> <div class="view viewsimple">
' . $sOut2 . ' ' . $sOut2 . '
......
...@@ -345,8 +345,8 @@ if ($aParams["prj"] == "all") { ...@@ -345,8 +345,8 @@ if ($aParams["prj"] == "all") {
$sOut.=$oHtml->getBox("error", t("page-setup-error-settings-were-not-saved")); $sOut.=$oHtml->getBox("error", t("page-setup-error-settings-were-not-saved"));
} }
} }
$sErrors=$oPrj->renderErrorBoxes();
$sOut.=$oPrj->renderProjectSetup(); $sOut.= $sErrors ? $oPrj->renderErrorBoxes() : $oPrj->renderProjectSetup();
} }
$sOut.= '<div id="navbuttom">' . aPrjHome() . '</div>'; $sOut.= '<div id="navbuttom">' . aPrjHome() . '</div>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment