mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-20 12:24:29 +02:00
parent
32e8b606b4
commit
675d070b86
@ -87,6 +87,7 @@ class ActionController extends Zend_Controller_Action
|
||||
$this->_helper->layout()->isIframe = $request->getUrl()->shift('isIframe');
|
||||
$this->_helper->layout()->moduleName = false;
|
||||
|
||||
$this->view->compact = $request->getParam('view') === 'compact';
|
||||
if ($this->rerenderLayout = $request->getUrl()->shift('renderLayout')) {
|
||||
$this->xhrLayout = 'body';
|
||||
}
|
||||
|
@ -16,11 +16,6 @@ use Icinga\Chart\Unit\LinearUnit;
|
||||
|
||||
class Monitoring_ChartController extends Controller
|
||||
{
|
||||
public function init()
|
||||
{
|
||||
$this->view->compact = $this->_request->getParam('view') === 'compact';
|
||||
}
|
||||
|
||||
private function drawLogChart1()
|
||||
{
|
||||
$chart = new GridChart();
|
||||
|
@ -21,7 +21,6 @@ class Monitoring_ListController extends Controller
|
||||
public function init()
|
||||
{
|
||||
$this->createTabs();
|
||||
$this->view->compact = $this->_request->getParam('view') === 'compact';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -167,8 +167,6 @@ class Monitoring_ShowController extends Controller
|
||||
));
|
||||
|
||||
$notifications->where('contact_object_id', $contact->contact_object_id);
|
||||
|
||||
$this->view->compact = true;
|
||||
$this->view->notifications = $notifications->paginate();
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,10 @@
|
||||
</div>
|
||||
|
||||
<?php if (count($notifications)): ?>
|
||||
<?= $this->render('list/notifications.phtml') ?>
|
||||
<?= $this->partial('list/notifications.phtml', array(
|
||||
'notifications' => $notifications,
|
||||
'compact' => true
|
||||
)); ?>
|
||||
<?php else: ?>
|
||||
<div class="content"><?= $this->translate('No notifications have been sent for this contact') ?></div>
|
||||
<?php endif ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user