Events meta

This commit is contained in:
Pablo Aragon 2023-02-28 09:50:42 +01:00
parent 32cf508633
commit 38a05d2a79
4 changed files with 44 additions and 44 deletions

View File

@ -2279,7 +2279,7 @@ if ($process_buffers === true) {
'',
true,
true,
'white_box white_box_opened',
'white_box white_box_opened fixed_filter_bar',
'no-border flex-row'
);

View File

@ -4895,13 +4895,13 @@ function ui_print_standard_header(
true
);
// Create the header.
if (is_metaconsole() === true) {
$output = ui_meta_print_header(
$title,
false,
$options
);
} else {
// if (is_metaconsole() === true) {
// $output = ui_meta_print_header(
// $title,
// false,
// $options
// );
// } else {
$output = ui_print_page_header(
$title,
$icon,
@ -4915,8 +4915,7 @@ function ui_print_standard_header(
'',
$headerInformation->printHeader(true)
);
}
// }
if ($return !== true) {
echo $output;
} else {

View File

@ -74,7 +74,8 @@ $readonly = false;
ui_require_css_file('events');
ui_require_css_file('tables');
if (is_metaconsole() === true) {
ui_require_css_file('tables_meta', ENTERPRISE_DIR.'/include/styles/');
ui_require_css_file('meta_tables', ENTERPRISE_DIR.'/meta/styles/');
ui_require_css_file('meta_events', ENTERPRISE_DIR.'/meta/styles/');
}
// Load extra javascript.
@ -1418,7 +1419,7 @@ if ($pure) {
} else {
if (is_metaconsole() === true) {
// Load metaconsole frame.
enterprise_hook('open_meta_frame');
// enterprise_hook('open_meta_frame');
}
// Header.
@ -1567,7 +1568,12 @@ if ($pure) {
break;
}
if (is_metaconsole() === false) {
if (is_metaconsole() === true) {
unset($onheader['rss']);
unset($onheader['sound_event']);
unset($onheader['fullscreen']);
}
unset($onheader['history']);
ui_print_standard_header(
__('Events list'),
@ -1583,12 +1589,6 @@ if ($pure) {
],
]
);
} else {
unset($onheader['rss']);
unset($onheader['sound_event']);
unset($onheader['fullscreen']);
ui_meta_print_header(__('Events'), $section_string, $onheader);
}
}
if (enterprise_installed() === true) {
@ -2578,8 +2578,7 @@ if (check_acl(
}
// Close viewer.
enterprise_hook('close_meta_frame');
// enterprise_hook('close_meta_frame');
// Datepicker requirements.
ui_require_css_file('datepicker');
ui_include_time_picker();

View File

@ -170,31 +170,33 @@ switch ($tab) {
break;
}
if (is_metaconsole() === false) {
if (!$strict_acl) {
$header_title = $header_title.' » '.$header_sub_title;
}
ui_print_standard_header(
$header_title,
'images/extensions.png',
false,
'',
false,
$tabs,
[
[
'link' => '',
'label' => __('Monitoring'),
],
[
'link' => '',
'label' => __('View'),
],
]
);
if (is_metaconsole() === true) {
$tabs = [];
}
if (!$strict_acl) {
$header_title = $header_title.' » '.$header_sub_title;
}
ui_print_standard_header(
$header_title,
'images/extensions.png',
false,
'',
false,
$tabs,
[
[
'link' => '',
'label' => __('Monitoring'),
],
[
'link' => '',
'label' => __('View'),
],
]
);
// ---------------------Tabs -------------------------------------------
// --------------------- form filter -----------------------------------
$table = new StdClass();