[FrameworkBundle] added a condition to only show current content when it is not empty in the exception template

This commit is contained in:
Fabien Potencier 2010-09-01 09:02:59 +02:00
parent 8bdb9c142c
commit 85f823fc08

View File

@ -49,13 +49,15 @@
</div>
<?php endif; ?>
<div class="block">
<h3>Content of the Output <a href="#" onclick="toggle('content'); return false;">&raquo;</a></h3>
<?php if ($currentContent): ?>
<div class="block">
<h3>Content of the Output <a href="#" onclick="toggle('content'); return false;">&raquo;</a></h3>
<div id="content" style="display: none">
<?php echo $currentContent ?>
<div id="content" style="display: none">
<?php echo $currentContent ?>
</div>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>
</div>
<?php endif; ?>
</div>