mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
parent
55dd3747f7
commit
2f62a4383a
@ -14,6 +14,7 @@ if (array_key_exists('_dev', $_GET)) {
|
|||||||
$ie8jsfile = 'js/icinga.ie8.js';
|
$ie8jsfile = 'js/icinga.ie8.js';
|
||||||
$lang = Translator::splitLocaleCode()->language;
|
$lang = Translator::splitLocaleCode()->language;
|
||||||
$isIframe = $this->layout()->isIframe;
|
$isIframe = $this->layout()->isIframe;
|
||||||
|
$showFullscreen = $this->layout()->showFullscreen;
|
||||||
$iframeClass = $isIframe ? ' iframe' : '';
|
$iframeClass = $isIframe ? ' iframe' : '';
|
||||||
|
|
||||||
?><!DOCTYPE html>
|
?><!DOCTYPE html>
|
||||||
@ -49,7 +50,7 @@ $iframeClass = $isIframe ? ' iframe' : '';
|
|||||||
</head>
|
</head>
|
||||||
<body id="body">
|
<body id="body">
|
||||||
<pre id="responsive-debug"></pre>
|
<pre id="responsive-debug"></pre>
|
||||||
<div id="layout" class="default-layout">
|
<div id="layout" class="default-layout<?php if ($showFullscreen): ?> fullscreen-layout<?php endif ?>">
|
||||||
<?= $this->render('body.phtml') ?>
|
<?= $this->render('body.phtml') ?>
|
||||||
</div>
|
</div>
|
||||||
<!--[if IE 8]>
|
<!--[if IE 8]>
|
||||||
|
@ -86,6 +86,7 @@ class ActionController extends Zend_Controller_Action
|
|||||||
$this->handlerBrowserWindows();
|
$this->handlerBrowserWindows();
|
||||||
$this->view->translationDomain = 'icinga';
|
$this->view->translationDomain = 'icinga';
|
||||||
$this->_helper->layout()->isIframe = $request->getUrl()->shift('isIframe');
|
$this->_helper->layout()->isIframe = $request->getUrl()->shift('isIframe');
|
||||||
|
$this->_helper->layout()->showFullscreen = $request->getUrl()->shift('showFullscreen');
|
||||||
$this->_helper->layout()->moduleName = false;
|
$this->_helper->layout()->moduleName = false;
|
||||||
|
|
||||||
$this->view->compact = $request->getParam('view') === 'compact';
|
$this->view->compact = $request->getParam('view') === 'compact';
|
||||||
|
@ -81,13 +81,25 @@ html {
|
|||||||
|
|
||||||
/** Fullscreen layout **/
|
/** Fullscreen layout **/
|
||||||
#layout.fullscreen-layout {
|
#layout.fullscreen-layout {
|
||||||
#header, #sidebar, .controls > .tabs {
|
#header, #sidebar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.controls > ul.tabs {
|
||||||
|
margin-top: 0;
|
||||||
|
height: 1.5em;
|
||||||
|
background-color: @colorPetrol;
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: 0.2em 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls > ul.tabs > li > a {
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -739,11 +739,13 @@
|
|||||||
|
|
||||||
if ('undefined' === typeof $parent) {
|
if ('undefined' === typeof $parent) {
|
||||||
|
|
||||||
|
if (! $('#layout').hasClass('fullscreen-layout')) {
|
||||||
$('#header').css({height: 'auto'});
|
$('#header').css({height: 'auto'});
|
||||||
$('#main').css({top: $('#header').css('height')});
|
$('#main').css({top: $('#header').css('height')});
|
||||||
$('#sidebar').css({top: $('#header').height() + 'px'});
|
$('#sidebar').css({top: $('#header').height() + 'px'});
|
||||||
$('#header').css({height: $('#header').height() + 'px'});
|
$('#header').css({height: $('#header').height() + 'px'});
|
||||||
$('#inner-layout').css({top: $('#header').css('height')});
|
$('#inner-layout').css({top: $('#header').css('height')});
|
||||||
|
}
|
||||||
$('.container').each(function (idx, container) {
|
$('.container').each(function (idx, container) {
|
||||||
self.fixControls($(container));
|
self.fixControls($(container));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user