From: Guillaume Pellerin Date: Wed, 13 Apr 2016 07:32:44 +0000 (+0200) Subject: add masonry to various pages X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=521ce51ec47a5bfc54bfdd9643de59c4eaa074b2;p=mezzo.git add masonry to various pages --- diff --git a/app/festival/templates/festival/artist_detail.html b/app/festival/templates/festival/artist_detail.html index 68b94221..d815a084 100644 --- a/app/festival/templates/festival/artist_detail.html +++ b/app/festival/templates/festival/artist_detail.html @@ -25,13 +25,12 @@
{% if artist.events.all %}

{% trans "Also discover" %}


- +
+
{% for event in artist.events.all %} {% include 'agenda/includes/event_card.html' %} {% endfor %} - -
- {% for event in artist.events.all %} +{% for event in artist.events.all %} {% for video in event.videos.all %} {% include 'festival/inc/video_card.html' %} {% endfor %} diff --git a/app/festival/templates/festival/video_detail.html b/app/festival/templates/festival/video_detail.html index df77f05c..78d06c59 100644 --- a/app/festival/templates/festival/video_detail.html +++ b/app/festival/templates/festival/video_detail.html @@ -24,10 +24,13 @@ {% endwith %}
-

{% trans 'Related event' %}

+

{% trans 'Also discover' %}

+
+
{% with video.event as event %} {% include 'agenda/includes/event_card.html' %} {% endwith %}
+
{% endblock %} diff --git a/app/templates/agenda/event_detail.html b/app/templates/agenda/event_detail.html index 5efd8e6d..5279fa55 100644 --- a/app/templates/agenda/event_detail.html +++ b/app/templates/agenda/event_detail.html @@ -156,24 +156,19 @@

{% trans "Also discover" %}

+
+
{% if event.artists.all %} -

{% trans "Artists" %}

-
{% for artist in event.artists.all %} {% include "festival/inc/artist_card.html" %} {% endfor %} -
{% endif %} - {% if event.videos.all %} -

{% trans "Videos" %}

-
{% for video in event.videos.all %} {% include 'festival/inc/video_card.html' %} {% endfor %} -
{% endif %} - +
{% endblock %} {% block event_detail_comments %}