Skip to content

Commit

Permalink
ActionController: introduce showCompact
Browse files Browse the repository at this point in the history
Works like view=compact, it will allow us to "free" the "view" parameter
  • Loading branch information
Thomas-Gelf committed Jun 18, 2015
1 parent c443d4f commit 8a8f5b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Icinga/Web/Controller/ActionController.php
Expand Up @@ -90,6 +90,9 @@ public function __construct(
$this->_helper->layout()->moduleName = false;

$this->view->compact = $request->getParam('view') === 'compact';
if ($request->getUrl()->shift('showCompact')) {
$this->view->compact = true;
}
if ($this->rerenderLayout = $request->getUrl()->shift('renderLayout')) {
$this->xhrLayout = 'body';
}
Expand Down

0 comments on commit 8a8f5b1

Please sign in to comment.