From 1f5db2f8c1d7b5e6ff5387e8ca8209721879835b Mon Sep 17 00:00:00 2001
From: Thomas Gelf <thomas@gelf.net>
Date: Thu, 18 Jun 2015 13:12:12 +0200
Subject: [PATCH] ActionController: introduce showCompact

Works like view=compact, it will allow us to "free" the "view" parameter
---
 library/Icinga/Web/Controller/ActionController.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php
index e2df27a3a..d7156becc 100644
--- a/library/Icinga/Web/Controller/ActionController.php
+++ b/library/Icinga/Web/Controller/ActionController.php
@@ -90,6 +90,9 @@ class ActionController extends Zend_Controller_Action
         $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';
         }