css/module: render disabled object preview as such

This commit is contained in:
Thomas Gelf 2016-02-22 14:39:47 +01:00
parent 1527873755
commit 990b7934f2
2 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,10 @@
</div> </div>
<div class="content"> <div class="content">
<pre><?= $this->escape($object) ?><?php if ($this->extraObjects): ?> <?php if ($object->disabled === 'y'): ?>
<p class="error"><?= $this->translate('This object will not be deployed as it has been disabled') ?></p>
<?php endif ?>
<pre<?php if ($object->disabled === 'y'): ?> class="disabled"<?php endif ?>><?= $this->escape($object) ?><?php if ($this->extraObjects): ?>
<?= implode('', $this->extraObjects) ?> <?= implode('', $this->extraObjects) ?>
<?php endif ?></pre> <?php endif ?></pre>
</div> </div>

View File

@ -17,6 +17,10 @@ span.disabled {
color: @gray-light; color: @gray-light;
} }
pre.disabled {
color: @gray-light;
}
pre { pre {
background: none; background: none;
} }