mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
ActionController: introduce showCompact
Works like view=compact, it will allow us to "free" the "view" parameter
This commit is contained in:
parent
321924906f
commit
1f5db2f8c1
@ -90,6 +90,9 @@ class ActionController extends Zend_Controller_Action
|
|||||||
$this->_helper->layout()->moduleName = false;
|
$this->_helper->layout()->moduleName = false;
|
||||||
|
|
||||||
$this->view->compact = $request->getParam('view') === 'compact';
|
$this->view->compact = $request->getParam('view') === 'compact';
|
||||||
|
if ($request->getUrl()->shift('showCompact')) {
|
||||||
|
$this->view->compact = true;
|
||||||
|
}
|
||||||
if ($this->rerenderLayout = $request->getUrl()->shift('renderLayout')) {
|
if ($this->rerenderLayout = $request->getUrl()->shift('renderLayout')) {
|
||||||
$this->xhrLayout = 'body';
|
$this->xhrLayout = 'body';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user