2013-06-11 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Added node access control to alerts view in metaconsole * operation/tree.php operation/events/events.build_table.php: Visual fixes git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8291 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6b6c417b46
commit
22d12afb44
|
@ -1,3 +1,11 @@
|
|||
2013-06-11 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_ui.php: Added node access control to
|
||||
alerts view in metaconsole
|
||||
|
||||
* operation/tree.php
|
||||
operation/events/events.build_table.php: Visual fixes
|
||||
|
||||
2013-06-11 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/events/events_list.php, operation/events/events.php:
|
||||
|
|
|
@ -787,11 +787,16 @@ function ui_format_alert_row ($alert, $agent = true, $url = '', $agent_style = f
|
|||
$id_agent = modules_get_agentmodule_agent ($alert["id_agent_module"]);
|
||||
}
|
||||
|
||||
if ($agent_style !== false) {
|
||||
$data[$index['agent_name']] .= ui_print_agent_name ($id_agent, true, 'agent_medium', $styleDisabled . " $agent_style", false, $console_url, $url_hash, $agent_name);
|
||||
if (defined('METACONSOLE') && !can_user_access_node ()) {
|
||||
$data[$index['agent_name']] = ui_print_truncate_text($agent_name, 'agent_small', false, true, false, '[…]', 'font-size:7.5pt;');
|
||||
}
|
||||
else {
|
||||
$data[$index['agent_name']] .= ui_print_agent_name ($id_agent, true, 'agent_medium', $styleDisabled, false, $console_url, $url_hash);
|
||||
if ($agent_style !== false) {
|
||||
$data[$index['agent_name']] .= ui_print_agent_name ($id_agent, true, 'agent_medium', $styleDisabled . " $agent_style", false, $console_url, $url_hash, $agent_name);
|
||||
}
|
||||
else {
|
||||
$data[$index['agent_name']] .= ui_print_agent_name ($id_agent, true, 'agent_medium', $styleDisabled, false, $console_url, $url_hash);
|
||||
}
|
||||
}
|
||||
|
||||
$data[$index['module_name']] =
|
||||
|
|
|
@ -13,8 +13,9 @@
|
|||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
|
||||
$table->width = '100%';
|
||||
if(!isset($table->width)) {
|
||||
$table->width = '100%';
|
||||
}
|
||||
$table->id = "eventtable";
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
|
@ -566,7 +567,7 @@ if (!empty ($table->data)) {
|
|||
echo "<input type='hidden' name='delete' id='hidden_delete_events' value='0' />";
|
||||
}
|
||||
|
||||
echo '<div style="width: 98%; overflow-x: auto;">';
|
||||
echo '<div style="width: ' . $table->width . '; overflow-x: auto;">';
|
||||
html_print_table ($table);
|
||||
echo '</div>';
|
||||
|
||||
|
|
|
@ -605,6 +605,8 @@ else {
|
|||
ui_meta_print_header(__("Tree view"), $subsection, $subsections);
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if(tags_has_user_acl_tags()) {
|
||||
ui_print_tags_warning();
|
||||
}
|
||||
|
@ -617,8 +619,6 @@ else {
|
|||
echo '<form id="tree_search" method="post" action="index.php?sec=monitoring&sec2=operation/tree&refr=0&tab='.$activeTab.'&pure='.$pure.'">';
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
echo "<b>" . __('Agent status') . "</b>";
|
||||
|
||||
$search_free = get_parameter('search_free', '');
|
||||
|
|
Loading…
Reference in New Issue