mirror of https://github.com/MISP/MISP
Some UI fixes related to the debug/nondebug alignment
parent
32510b4f29
commit
1f411c74cf
|
@ -130,7 +130,7 @@ class AppController extends Controller {
|
|||
$this->set('isAclAudit', false);
|
||||
$this->set('isAclAuth', false);
|
||||
}
|
||||
if (Configure::read('debug')) {
|
||||
if (Configure::read('debug') > 0) {
|
||||
$this->debugMode = 'debugOn';
|
||||
} else {
|
||||
$this->debugMode = 'debugOff';
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<body>
|
||||
<div id="container">
|
||||
<?php echo $this->element('global_menu');
|
||||
if (!$debugMode) {
|
||||
if ($debugMode == 'debugOff') {
|
||||
?>
|
||||
<div class="container-fluid debugOff" style="padding-top:50px;width:98%;">
|
||||
<?php
|
||||
|
@ -44,10 +44,9 @@
|
|||
echo $this->Session->flash();
|
||||
echo $this->Session->flash('email'); ?>
|
||||
</div>
|
||||
<br/><br />
|
||||
<div
|
||||
<?php
|
||||
if (Configure::read('debug') == 0) echo "style=\"margin-top:50px;\"";
|
||||
if (Configure::read('debug') == 0) echo "style=\"padding-top:100px;\"";
|
||||
?>
|
||||
>
|
||||
<?php echo $this->fetch('content'); ?>
|
||||
|
|
Loading…
Reference in New Issue