]> git.parisson.com Git - mezzo.git/commitdiff
use artist.photo_featured by default
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 4 Mar 2016 15:18:30 +0000 (16:18 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 4 Mar 2016 15:18:30 +0000 (16:18 +0100)
app/festival/templates/festival/artist_detail.html

index 5586e1d1d1db34f7a2563384fedef94ab9ebfe92..c19fddad29b1df948fdd252415625b548dffeaeb 100644 (file)
@@ -10,7 +10,7 @@
 <div class="artist__detail">
  <p>
   {% if artist.photo %}
-   <img class="artist__portrait{% if artist.photo_alignment == 'left' %}--left{% elif artist.photo_alignment == 'right' %}--right{% else %}--center{% endif %}" src="{{ MEDIA_URL }}/{{ artist.photo }}" />
+   <img class="artist__portrait{% if artist.photo_alignment == 'left' %}--left{% elif artist.photo_alignment == 'right' %}--right{% else %}--center{% endif %}" src="{{ MEDIA_URL }}/{% if artist.photo_featured }{{ artist.photo_featured }}{% else %}{{ artist.photo }}{% endif %}" />
   {% endif %}
   {{ artist.bio|safe }}
   <br style="clear: both;" />