mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
Add helpers to set size to class icons
This commit is contained in:
@@ -464,7 +464,7 @@ class DisplayableNode extends GraphNode
|
||||
{
|
||||
$aRootCauses[] = $oRootCause->GetHyperlink();
|
||||
}
|
||||
$sHtml .= '<p><img style="max-height: 24px; vertical-align:bottom;" src="'.utils::GetAbsoluteUrlModulesRoot().$aContext['icon'].'" title="'.htmlentities(Dict::S($aContext['dict'])).'"> '.implode(', ', $aRootCauses).'</p>';
|
||||
$sHtml .= '<p><img style="max-height: 24px; vertical-align:bottom;" class="ibo-class-icon ibo-is-small" src="'.utils::GetAbsoluteUrlModulesRoot().$aContext['icon'].'" title="'.htmlentities(Dict::S($aContext['dict'])).'"> '.implode(', ', $aRootCauses).'</p>';
|
||||
}
|
||||
$sHtml .= '<hr/>';
|
||||
}
|
||||
@@ -805,7 +805,7 @@ class DisplayableGroupNode extends DisplayableNode
|
||||
$sHtml .= '<a href="#" onclick="$(\'.itop-simple-graph\').simple_graph(\'show_group\', \'relation_group_'.$iGroupIdx.'\');">'.Dict::Format('UI:RelationGroupNumber_N', (1+$iGroupIdx))."</a>";
|
||||
$sHtml .= '<hr/>';
|
||||
$sHtml .= '<table><tbody><tr>';
|
||||
$sHtml .= '<td style="vertical-align:top;padding-right: 0.5em;"><img src="'.$this->GetProperty('icon_url').'"></td><td style="vertical-align:top">'.MetaModel::GetName($this->GetObjectClass()).'<br/>';
|
||||
$sHtml .= '<td style="vertical-align:top;padding-right: 0.5em;"><img class="ibo-class-icon ibo-is-small" src="'.$this->GetProperty('icon_url').'"></td><td style="vertical-align:top">'.MetaModel::GetName($this->GetObjectClass()).'<br/>';
|
||||
$sHtml .= Dict::Format('UI_CountOfObjectsShort', $this->GetObjectCount()).'</td>';
|
||||
$sHtml .= '</tr></tbody></table>';
|
||||
return $sHtml;
|
||||
|
||||
@@ -23,3 +23,4 @@
|
||||
@import "font-icon";
|
||||
@import "typography";
|
||||
@import "misc";
|
||||
@import "class-icon";
|
||||
|
||||
17
css/backoffice/utils/helpers/_class-icon.scss
Normal file
17
css/backoffice/utils/helpers/_class-icon.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
.ibo-class-icon{
|
||||
&.ibo-is-small{
|
||||
width: 32px;
|
||||
min-width: 32px;
|
||||
max-height: 32px;
|
||||
}
|
||||
&.ibo-is-medium{
|
||||
width: 48px;
|
||||
min-width: 48px;
|
||||
max-height: 48px;
|
||||
}
|
||||
&.ibo-is-large{
|
||||
width: 64px;
|
||||
min-width: 64px;
|
||||
max-height: 64px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user