Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/views/monitoring.host.view.php')
-rw-r--r--ui/app/views/monitoring.host.view.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/ui/app/views/monitoring.host.view.php b/ui/app/views/monitoring.host.view.php
index f50e9c56edd..fcee4d1d6ed 100644
--- a/ui/app/views/monitoring.host.view.php
+++ b/ui/app/views/monitoring.host.view.php
@@ -45,7 +45,7 @@ if ($data['can_create_hosts']) {
$nav_items->addItem(get_icon('kioskmode', ['mode' => $web_layout_mode]));
-$widget = (new CWidget())
+$html_page = (new CHtmlPage())
->setTitle(_('Hosts'))
->setWebLayoutMode($web_layout_mode)
->setDocUrl(CDocHelper::getUrl(CDocHelper::MONITORING_HOST_VIEW))
@@ -66,18 +66,19 @@ if ($web_layout_mode == ZBX_LAYOUT_NORMAL) {
// Set javascript options for tab filter initialization in monitoring.host.view.js.php file.
$data['filter_options'] = $filter->options;
- $widget->addItem($filter);
+ $html_page->addItem($filter);
}
else {
$data['filter_options'] = null;
}
-$widget->addItem((new CForm())
- ->setName('host_view')
- ->addClass('is-loading')
-);
-
-$widget->show();
+$html_page
+ ->addItem(
+ (new CForm())
+ ->setName('host_view')
+ ->addClass('is-loading')
+ )
+ ->show();
(new CScriptTag('
view.init('.json_encode([