diff --git a/library/Icinga/Web/Widget/Dashboard/Component.php b/library/Icinga/Web/Widget/Dashboard/Component.php
index 10fbc640d..ad984c5fb 100644
--- a/library/Icinga/Web/Widget/Dashboard/Component.php
+++ b/library/Icinga/Web/Widget/Dashboard/Component.php
@@ -76,7 +76,7 @@ class Component extends AbstractWidget
EOD;
@@ -165,8 +165,11 @@ EOD;
$view = $this->view();
$url = clone($this->url);
$url->addParams(array('view' => 'compact'));
+ $iframeUrl = clone($url);
+ $iframeUrl->addParams(array('_render' => 'iframe'));
$html = str_replace('{URL}', $url, $this->template);
+ $html = str_replace('{IFRAME_URL}', $iframeUrl, $html);
$html = str_replace('{FULL_URL}', $url->getUrlWithout('view'), $html);
$html = str_replace('{REMOVE_BTN}', $this->getRemoveForm($view), $html);
$html = str_replace('{TITLE}', $view->escape($this->getTitle()), $html);
@@ -181,6 +184,8 @@ EOD;
*/
protected function getRemoveForm()
{
+ // TODO: temporarily disabled, should point to a form asking for confirmal
+ return '';
$removeUrl = Url::fromPath(
'/dashboard/removecomponent',
array(
diff --git a/public/css/icinga/layout-structure.less b/public/css/icinga/layout-structure.less
index afcd0bb86..1e6382cde 100644
--- a/public/css/icinga/layout-structure.less
+++ b/public/css/icinga/layout-structure.less
@@ -35,6 +35,17 @@ html {
bottom: 0;
}
+.iframe {
+ #header, #sidebar {
+ display: none;
+ }
+
+ #main {
+ left: 0;
+ top: 0;
+ }
+}
+
#responsive-debug {
font-size: 0.9em;
font-family: Courier new, monospace;