layout/pdf: fix module css support
Containers need the correct module classes to get their correct CSS also for PDFs
This commit is contained in:
parent
bfff645a08
commit
5e69d1d997
|
@ -2,6 +2,15 @@
|
||||||
|
|
||||||
use Icinga\Web\StyleSheet;
|
use Icinga\Web\StyleSheet;
|
||||||
|
|
||||||
|
|
||||||
|
$moduleName = $this->layout()->moduleName;
|
||||||
|
if ($moduleName) {
|
||||||
|
$moduleClass = ' icinga-module module-' . $moduleName;
|
||||||
|
} else {
|
||||||
|
$moduleClass = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
?><!DOCTYPE html>
|
?><!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -32,7 +41,7 @@ if ( isset($pdf) )
|
||||||
</table>
|
</table>
|
||||||
</div>-->
|
</div>-->
|
||||||
<h1><?= $this->escape($this->title) ?></h1>
|
<h1><?= $this->escape($this->title) ?></h1>
|
||||||
<div id="col1" class="container">
|
<div id="col1" class="container<?= $moduleClass ?>">
|
||||||
<?= $this->render('inline.phtml') ?>
|
<?= $this->render('inline.phtml') ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue