mirror of https://github.com/MISP/MISP
Fix to the previous commit
- previous commit broke the flash message alignment when debug was enabledpull/304/merge
parent
51d83f8ceb
commit
525ef65008
|
@ -36,7 +36,7 @@
|
||||||
$padding_top = 10;
|
$padding_top = 10;
|
||||||
if ($debugMode == 'debugOff') $padding_top = 50;
|
if ($debugMode == 'debugOff') $padding_top = 50;
|
||||||
?>
|
?>
|
||||||
<div class="container-fluid debugOff" style="padding-top:<?php echo $padding_top; ?>px;width:98%;">
|
<div class="container-fluid <?php echo $debugMode; ?>" style="padding-top:<?php echo $padding_top; ?>px;width:98%;">
|
||||||
<?php
|
<?php
|
||||||
$has_flash = false;
|
$has_flash = false;
|
||||||
$flash = array();
|
$flash = array();
|
||||||
|
@ -56,8 +56,11 @@
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$topGap = 50;
|
$topGap = 50;
|
||||||
if (Configure::read('debug') != 0) $topGap = 10;
|
if (Configure::read('debug') != 0) {
|
||||||
if ($has_flash) $topGap += 50;
|
$topGap = 10;
|
||||||
|
} else {
|
||||||
|
if ($has_flash) $topGap += 50;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div style="padding-top:<?php echo $topGap; ?>px !important;">
|
<div style="padding-top:<?php echo $topGap; ?>px !important;">
|
||||||
<?php echo $this->fetch('content'); ?>
|
<?php echo $this->fetch('content'); ?>
|
||||||
|
|
Loading…
Reference in New Issue