]> git.parisson.com Git - mezzo.git/commitdiff
fix artist image copyright
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 4 Apr 2016 16:22:21 +0000 (18:22 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 4 Apr 2016 16:22:21 +0000 (18:22 +0200)
app/festival/templates/festival/artist_detail.html
app/festival/templates/festival/inc/artist_card.html

index 4e8298af99d2e078b789e05f7b1921a3144701e1..898ba976540bbcaee5e4cd906070992bec4bd4c8 100644 (file)
 <div class="artist__detail">
     <p>
     {% if artist.photo %}
+    <figure class="artist__img">
         <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 %}" />
-
+        <figcaption class="artist__img__copyright">
+           {{ artist.photo_credits }}
+        </figcaption>
+    </figure>
     {% endif %}
     {{ artist.bio|safe }}
     <br style="clear: both;" />
index af3b6a8750a29717c2bacfa1cfa21a1d96b197b0..d627244ad10dd335b94ba6a168f86149d3510885 100644 (file)
@@ -3,9 +3,6 @@
         <a href="{% url 'festival-artist-detail' artist.slug %}" class="artist__item__inner">
             <figure class="artist__img">
                 <img src="{% if artist.photo_featured %}{{ MEDIA_URL }}/{{ artist.photo_featured }}{% elif artist.photo %}{{ MEDIA_URL }}/{{ artist.photo }}{% else %}{% endif %}" alt="Portrait {{ artist.name }}">
-                <figcaption class="artist__img__copyright">
-                   {{ artist.photo_credits }}
-                </figcaption>
             </figure>
             <h3 class="artist__item__name">
                 <span>