Show director only if present.
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 11 May 2010 13:10:32 +0000 (15:10 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 11 May 2010 13:10:32 +0000 (15:10 +0200)
wolnelektury/templates/catalogue/book_detail.html

index 03b46bc..f436353 100644 (file)
@@ -43,7 +43,9 @@
                 <div id="czytamy-sluchajac-info">
                     <a href="http://czytamysluchajac.pl/" id="czytamysluchajac-logo"><img src="/static/img/czytamysluchajac-logo-small.png" /></a>     
                     <p>{% trans "Artist" %}: {{ book.get_extra_info_value.artist_name }}</p>
                 <div id="czytamy-sluchajac-info">
                     <a href="http://czytamysluchajac.pl/" id="czytamysluchajac-logo"><img src="/static/img/czytamysluchajac-logo-small.png" /></a>     
                     <p>{% trans "Artist" %}: {{ book.get_extra_info_value.artist_name }}</p>
-                    <p>{% trans "Director" %}: {{ book.get_extra_info_value.director_name }}</p>
+                                       {% if book.get_extra_info_value.director_name %}
+                        <p>{% trans "Director" %}: {{ book.get_extra_info_value.director_name }}</p>
+                                       {% endif %}
                 </div>
             {% endif %}
             {% if book.mp3_file %}<a href="{{ book.mp3_file.url }}">{% trans "Download MP3" %}</a>{% endif %}
                 </div>
             {% endif %}
             {% if book.mp3_file %}<a href="{{ book.mp3_file.url }}">{% trans "Download MP3" %}</a>{% endif %}