]> git.parisson.com Git - mezzo.git/commitdiff
fix no artist photo
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 3 Mar 2016 09:16:34 +0000 (10:16 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 3 Mar 2016 09:16:34 +0000 (10:16 +0100)
app/festival/templates/festival/artist_list.html

index d8582e2b6952773e404b289743ec01d0f0e4562f..0040289a6a6d5efd1cc8d7e2d0ccae283eb3b5c5 100644 (file)
@@ -13,7 +13,7 @@
         <div class="artist__item">
             <div class="artist__item__inner">
                 <a href="{% url 'festival-artist-detail' artist.slug %}" class="artist__item__inner">
-                    <img src="{{ MEDIA_URL }}/{% if artist.photo %}{{ artist.photo }}{% elif artist.photo_featured %}{{ artist.photo_featured }}{% endif %}" alt="Portrait {{ artist.name }}">
+                    <img src="{% if artist.photo %}{{ MEDIA_URL }}/{{ artist.photo }}{% elif artist.photo_featured %}{{ MEDIA_URL }}/{{ artist.photo_featured }}{% else %}{% endif %}" alt="Portrait {{ artist.name }}">
                     <h3 class="artist__item__name">
                         {{ artist.name }}
                     </h3>