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:
Thomas Gelf 2014-05-20 22:46:36 +00:00
parent bfff645a08
commit 5e69d1d997
1 changed files with 10 additions and 1 deletions

View File

@ -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>