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('isAclAuth', false);
}
if (Configure::read('debug')) {
if (Configure::read('debug') > 0) {
$this->debugMode = 'debugOn';
} else {
$this->debugMode = 'debugOff';

View File

@ -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'); ?>