]> git.parisson.com Git - mezzo.git/commitdiff
add artist photos to list
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 2 Mar 2016 11:23:47 +0000 (12:23 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 2 Mar 2016 11:23:47 +0000 (12:23 +0100)
app/festival/templates/festival/artist_list.html

index 5b0a612d0abb04da230dc04aa92ca873b2b49208..3e3bd5b6e8b21c0ef13b82bf602b15f28de4319d 100644 (file)
@@ -11,7 +11,7 @@
 <div class="artist-list">
  <ul>
  {% for artist in object_list %}
-    <li><a href="{% url 'festival-artist-detail' artist.slug %}">{{ artist.name }}</a></li>
+    <li><a href="{% url 'festival-artist-detail' artist.slug %}"><img width="10%" src="{{ MEDIA_URL }}/{% if artist.photo %}{{ artist.photo }}{% elif artist.photo_featured %}{{ artist.photo_featured }}{% endif %}" />{{ artist.name }}</a></li>
  {% endfor %}
  </ul>
 </div>