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

update project classes

parent c8b1ef1e
Branches
No related tags found
1 merge request!62V2.0
...@@ -47,6 +47,9 @@ class projectgui extends project { ...@@ -47,6 +47,9 @@ class projectgui extends project {
$iFgStart=60; $iFgEnd=160; $iFgStart=60; $iFgEnd=160;
$iBgStart=200; $iBgEnd=250; $iBgStart=200; $iBgEnd=250;
$iFgStart=60; $iFgEnd=160;
$iBgStart=190; $iBgEnd=250;
// deivider: 3 digits of md5 will be extracted // deivider: 3 digits of md5 will be extracted
$iFgDivider=16*16*16/($iFgEnd-$iFgStart); $iFgDivider=16*16*16/($iFgEnd-$iFgStart);
$iBgDivider=16*16*16/($iBgEnd-$iBgStart); $iBgDivider=16*16*16/($iBgEnd-$iBgStart);
...@@ -263,17 +266,20 @@ class projectgui extends project { ...@@ -263,17 +266,20 @@ class projectgui extends project {
// render html // render html
$sId = 'info' . md5($sInfos); $sId = 'info' . md5($sInfos);
$sReturn = '<a href="#" class="btn ' . ($bIsError ? 'btn-danger' : 'btn-default') . '" title="" onclick="showIdAsModalMessage(\'' . $sId . '\'); return false;">' $sReturn = '<a href="#" class="btn ' . ($bIsError ? 'btn-danger' : 'btn-default') . '" title=""
onclick="showIdAsModalMessage(\'' . $sId . '\', \''.$sTitle.'\'); return false;"
>'
// . '<i class="fa fa-info"></i> ' // . '<i class="fa fa-info"></i> '
. $sLinktitle . $sLinktitle
. '</a><div id="' . $sId . '" style="display: none;" '; . '</a><div id="' . $sId . '" style="display: none;" '
;
if (array_key_exists("hpos", $aOptions)) { if (array_key_exists("hpos", $aOptions)) {
$sReturn.=' class="' . $aOptions["hpos"] . '"'; $sReturn.=' class="' . $aOptions["hpos"] . '"';
} }
$sReturn.='>'; $sReturn.='>';
if ($sTitle) { if ($sTitle) {
$sReturn.='<span class="title">' . $sTitle . '</span><br><br>'; // $sReturn.='<span class="title">' . $sTitle . '</span><br><br>';
} }
$sReturn.=$sInfos . '</div>'; $sReturn.=$sInfos . '</div>';
...@@ -588,7 +594,7 @@ class projectgui extends project { ...@@ -588,7 +594,7 @@ class projectgui extends project {
$sRow1 = false; $sRow1 = false;
$sRow2 = false; $sRow2 = false;
foreach ($this->getActivePhases() as $sPhase) { foreach ($this->getActivePhases() as $sPhase) {
$sRow1.='<th class="' . $sPhase . '">' . $sPhase . '</th>'; $sRow1.='<th class="' . $sPhase . ' tdphase">' . $sPhase . '</th>';
$sRow2.='<td class="' . $sPhase . '">' $sRow2.='<td class="' . $sPhase . '">'
. t('url') . ': <a href="' . $this->_aPrjConfig["phases"][$sPhase]["url"] . '">' . $this->_aPrjConfig["phases"][$sPhase]["url"] . '</a><br>' . t('url') . ': <a href="' . $this->_aPrjConfig["phases"][$sPhase]["url"] . '">' . $this->_aPrjConfig["phases"][$sPhase]["url"] . '</a><br>'
. '<br>' . t('deploytimes') . ':<br>'; . '<br>' . t('deploytimes') . ':<br>';
...@@ -1549,7 +1555,7 @@ class projectgui extends project { ...@@ -1549,7 +1555,7 @@ class projectgui extends project {
} }
foreach ($this->getActivePhases() as $sPhase) { foreach ($this->getActivePhases() as $sPhase) {
$sRowHead1.='<th class="' . $sPhase . '" colspan="' . (count($this->_aPlaces) + 1) . '">' . $sPhase . '</th>'; $sRowHead1.='<th class="' . $sPhase . ' tdphase" colspan="' . (count($this->_aPlaces) + 1) . '">' . $sPhase . '</th>';
$sRowHead2.='<td></td>' . $this->renderPlacesAsTd($sPhase); $sRowHead2.='<td></td>' . $this->renderPlacesAsTd($sPhase);
} }
......
...@@ -182,7 +182,7 @@ class projectlist extends base{ ...@@ -182,7 +182,7 @@ class projectlist extends base{
. 'ondblclick="location.href=\'/deployment/' . $sPrj . '/\'" ' . 'ondblclick="location.href=\'/deployment/' . $sPrj . '/\'" '
. 'title="'.sprintf(t("overview-hint-dblclick"),$sPrj).'"> . 'title="'.sprintf(t("overview-hint-dblclick"),$sPrj).'">
<td class="prj"> <td class="prj">
<span class="float-right">'.$sPrjGroup.'</span> <span class="float-right"><i class="fa-solid fa-tag"></i> '.$sPrjGroup.'</span>
<strong>' <strong>'
.$oHtml->getLink(array( .$oHtml->getLink(array(
'href'=>'/deployment/' . $sPrj . '/', 'href'=>'/deployment/' . $sPrj . '/',
...@@ -592,7 +592,7 @@ class projectlist extends base{ ...@@ -592,7 +592,7 @@ class projectlist extends base{
.$renderAdminLTE->addRow( .$renderAdminLTE->addRow(
$renderAdminLTE->addCol( $renderAdminLTE->addCol(
$renderAdminLTE->getCard([ $renderAdminLTE->getCard([
'type'=>'gray', 'type'=>'',
'variant'=>'outline', 'variant'=>'outline',
'text'=>$sOut, 'text'=>$sOut,
]), ]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment