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;
|
||||
|
||||
|
||||
$moduleName = $this->layout()->moduleName;
|
||||
if ($moduleName) {
|
||||
$moduleClass = ' icinga-module module-' . $moduleName;
|
||||
} else {
|
||||
$moduleClass = '';
|
||||
}
|
||||
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
@ -32,7 +41,7 @@ if ( isset($pdf) )
|
|||
</table>
|
||||
</div>-->
|
||||
<h1><?= $this->escape($this->title) ?></h1>
|
||||
<div id="col1" class="container">
|
||||
<div id="col1" class="container<?= $moduleClass ?>">
|
||||
<?= $this->render('inline.phtml') ?>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue