Some UI fixes related to the debug/nondebug alignment

pull/217/head
iglocska 2013-07-09 10:05:19 +02:00
parent 32510b4f29
commit 1f411c74cf
2 changed files with 3 additions and 4 deletions

View File

@ -130,7 +130,7 @@ class AppController extends Controller {
$this->set('isAclAudit', false); $this->set('isAclAudit', false);
$this->set('isAclAuth', false); $this->set('isAclAuth', false);
} }
if (Configure::read('debug')) { if (Configure::read('debug') > 0) {
$this->debugMode = 'debugOn'; $this->debugMode = 'debugOn';
} else { } else {
$this->debugMode = 'debugOff'; $this->debugMode = 'debugOff';

View File

@ -29,7 +29,7 @@
<body> <body>
<div id="container"> <div id="container">
<?php echo $this->element('global_menu'); <?php echo $this->element('global_menu');
if (!$debugMode) { if ($debugMode == 'debugOff') {
?> ?>
<div class="container-fluid debugOff" style="padding-top:50px;width:98%;"> <div class="container-fluid debugOff" style="padding-top:50px;width:98%;">
<?php <?php
@ -44,10 +44,9 @@
echo $this->Session->flash(); echo $this->Session->flash();
echo $this->Session->flash('email'); ?> echo $this->Session->flash('email'); ?>
</div> </div>
<br/><br />
<div <div
<?php <?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'); ?> <?php echo $this->fetch('content'); ?>