Permalink
Browse files

only display block title when it is defined

  • Loading branch information...
1 parent 476631a commit 183bc29f701d4fcb9726a37858d2b164563a57c1 Reto Ryter committed Mar 15, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 Resources/views/Block/block_slideshow.html.twig
@@ -3,7 +3,9 @@
{% block block %}
{% if childBlocks %}
- <h3>Block title: {{ block.title }}</h3>
+ {% if block.title is defined %}
+ <h3>{{ block.title }}</h3>
+ {% endif %}
<div class="slideshow">
<ul>
{% for item in childBlocks %}
@@ -13,4 +15,4 @@
</div>
{% endif %}
-{% endblock %}
+{% endblock %}

0 comments on commit 183bc29

Please sign in to comment.