Minor fixes
This commit is contained in:
parent
c13b77aea9
commit
c48ec28743
|
@ -250,7 +250,7 @@ if ($favorite_array == false) {
|
|||
echo "<a href='".$url."' title='Visual console".$favourite_v['name']."' alt='".$favourite_v['name']."'><li>";
|
||||
echo "<div class='icon_img'>";
|
||||
echo html_print_image(
|
||||
'images/'.groups_get_icon($favourite_v['id_group']).'.png',
|
||||
'images/'.groups_get_icon($favourite_v['id_group']),
|
||||
true,
|
||||
['style' => '']
|
||||
);
|
||||
|
|
|
@ -3298,6 +3298,7 @@ class NetworkMap
|
|||
|
||||
$table = new stdClass();
|
||||
$table->id = 'interface_link_table';
|
||||
$table->class = 'info_table';
|
||||
$table->width = '100%';
|
||||
$table->head['node_source_interface'] = __('Node source');
|
||||
$table->head['interface_source_select'] = __('Interface source');
|
||||
|
@ -3340,16 +3341,25 @@ class NetworkMap
|
|||
|
||||
$output .= '<br>';
|
||||
|
||||
$table->data['interface_row']['interface_link_button'] = html_print_button(
|
||||
$output .= html_print_table($table, true);
|
||||
$output .= html_print_div(
|
||||
[
|
||||
'class' => 'action-buttons',
|
||||
'content' => html_print_button(
|
||||
__('Add interface link'),
|
||||
'',
|
||||
false,
|
||||
'add_interface_link_js();',
|
||||
'class="sub"',
|
||||
[
|
||||
'icon' => 'wand',
|
||||
'mode' => 'mini',
|
||||
],
|
||||
true
|
||||
),
|
||||
],
|
||||
true
|
||||
);
|
||||
|
||||
$output .= html_print_table($table, true);
|
||||
$output .= '</div></div>';
|
||||
|
||||
$output .= '<div id="dialog_node_add" class="invisible" title="';
|
||||
|
@ -3722,11 +3732,7 @@ class NetworkMap
|
|||
// Open networkconsole_id div.
|
||||
$output .= '<div id="networkconsole_'.$networkmap['id'].'"';
|
||||
if ($this->fullSize) {
|
||||
if ($this->widget) {
|
||||
$output .= ' class="networkconsole">';
|
||||
} else {
|
||||
$output .= ' class="networkconsole">';
|
||||
}
|
||||
} else {
|
||||
$output .= ' style="width: '.$this->mapOptions['width'].'px; height: '.$this->mapOptions['height'].'px;position: relative; overflow: hidden; background: #FAFAFA">';
|
||||
}
|
||||
|
|
|
@ -440,17 +440,17 @@ function groups_give_disabled_group($id_group)
|
|||
*/
|
||||
function groups_get_icon($id_group)
|
||||
{
|
||||
if ($id_group == 0) {
|
||||
return 'world';
|
||||
if ((int) $id_group === 0) {
|
||||
$icon = 'unknown@groups.svg';
|
||||
} else {
|
||||
$icon = (string) db_get_value('icon', 'tgrupo', 'id_grupo', (int) $id_group);
|
||||
|
||||
if ($icon == '') {
|
||||
$icon = 'without_group';
|
||||
if (empty($icon) === true) {
|
||||
$icon = 'unknown@groups.svg';
|
||||
}
|
||||
}
|
||||
|
||||
return $icon;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue