diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index b5ecafbba..8562ba4f0 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -78,7 +78,6 @@ class Monitoring_ListController extends Controller $this->addTitleTab('hosts'); $this->setAutorefreshInterval(10); - $this->compactView = 'hosts-compact'; $query = $this->backend->select()->from('hostStatus', array_merge(array( 'host_icon_image', 'host_name', diff --git a/modules/monitoring/application/views/scripts/list/hosts-compact.phtml b/modules/monitoring/application/views/scripts/list/hosts-compact.phtml deleted file mode 100644 index d06c3af32..000000000 --- a/modules/monitoring/application/views/scripts/list/hosts-compact.phtml +++ /dev/null @@ -1,88 +0,0 @@ -count() === 0) { - echo '
No host found
'; - return; -} - -?>- = $this->timeSince($host->host_last_state_change) ?> - | -
- = $host->host_name ?> - = $this->escape(substr(strip_tags($host->host_output), 0, 10000)); ?> - |
-
+ compact): ?>
+
+ host_unhandled_services) && $host->host_unhandled_services > 0): ?>
+
+ = $host->host_unhandled_services ?>
+
+
- if (isset($host->host_last_comment) && $host->host_last_comment !== null) {
- $icons[] = $this->icon('comment.png', 'Comment: ' . $host->host_last_comment);
- }
-?>
-
- |
- = ucfirst($helper->monitoringState($host, 'host')); ?>
- host_unhandled_services) && $host->host_unhandled_services > 0): ?>
-
- = $host->host_unhandled_services ?>
-
-
+ = ucfirst($helper->monitoringState($host, 'host')) ?>
+
+ +
+
+ = $this->prefixedTimeSince($host->host_last_state_change, true) ?>
+ compact): ?>
+ host_state > 0): ?>
+
+ + = $this->translate( + ($host->host_state_type === '1') ? 'Hard' : 'Soft' + ) ?> = $host->host_current_check_attempt ?>/= $host->host_max_check_attempts ?> + + -
- = $this->prefixedTimeSince($host->host_last_state_change, true) ?>
- host_state > 0): ?>
-
-
-
-
-
- - = ($host->host_state_type === '1') ? $this->translate('Hard') : $this->translate('Soft') ?> = $host->host_current_check_attempt; ?>/= $host->host_max_check_attempts; ?> - -
- host_icon_image) : ?>
- = $this->img($this->resolveMacros($host->host_icon_image, $host), array('align' => 'right')) ?>
-
- = implode(' ', $icons) ?>
- = $host->host_name ?> |
- - = $this->escape(substr(strip_tags($host->host_output), 0, 10000)); ?> - |
+ compact): ?>
+ host_icon_image): ?>
+ = $this->img(
+ $this->resolveMacros($host->host_icon_image, $host),
+ array('align' => 'right')
+ ) ?>
+
+ = implode(' ', $icons) ?>
+
+ = $host->host_name ?> + = $this->escape(substr(strip_tags($host->host_output), 0, 10000)) ?> + |
+
+
+