]> git.parisson.com Git - mezzo.git/commitdiff
Cleanup video_detail.html
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 5 Oct 2016 16:43:28 +0000 (18:43 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 5 Oct 2016 16:43:28 +0000 (18:43 +0200)
app/templates/agenda/includes/event_date.html
app/templates/agenda/includes/event_metainfo.html
app/templates/media/video/video_detail.html
docker-compose.yml
lib/mezzanine-agenda

index 378c5b78a26d7f63fcabce775b929f274e0845e4..6c09e33176bcc5bedfb4d418d3bf8715ede8c191 100644 (file)
@@ -2,43 +2,43 @@
 
 <!-- Start date only  -->
 {% if event.start and not event.end %}
-
     {{ event.start|date:"l j F" }}
-
     <!-- Start date with hour  -->
-    {% if event.start|date:"H:i" != "23:59" %}
+    {% if event.start|date:"H:i" != "00:00" %}
         {% trans "at" %}
         {{ event.start|date:"H\hi" }}
     {% endif %}
 
 <!-- Start and end date  -->
 {% else %}
-
     <!-- Start and end date is the same day  -->
     {% if event.start|date:"d.m.y" == event.end|date:"d.m.y" %}
-
-        {{ event.start|date:"l j F" }}
-
-        <!-- Start date with hour  -->
-        {% if event.start|date:"H:i" != "23:59" %}
-            {% trans "from" %}
-            {{ event.start|date:"H\hi" }}
-            {% comment %}
-                {% if event.end|date:"H:i" != "23:59" %}
-                    {% trans "to" %}
-                    {{ event.end|date:"H\hi" }}
-                {% endif %}
-            {% endcomment %}
+        {% if not event.periods.all %}
+            {{ event.start|date:"l j F" }}
+            <!-- Start date with hour  -->
+            {% if event.start|date:"H:i" != "00:00" %}
+                {% trans "from" %}
+                {{ event.start|date:"H\hi" }}
+                {% comment %}
+                    {% if event.end|date:"H:i" != "00:00" %}
+                        {% trans "to" %}
+                        {{ event.end|date:"H\hi" }}
+                    {% endif %}
+                {% endcomment %}
+            {% endif %}
+        {% else %}
+            {{ event.start|date:"j F" }}<br>
+            {% for period in event.periods.all %}
+                {% trans "From" %} {{ period.date_from|date:"H:i" }} {% trans "to" %} {{ period.date_to|date:"H:i" }}
+            {% endfor %}
         {% endif %}
 
     <!-- Start and end date are the same month  -->
     {% elif event.start|date:"m.y" == event.end|date:"m.y" %}
-
-        {% trans "From" %}
-        {{ event.start|date:"j" }}
-        {% trans "to" %}
-        {{ event.end|date:"j F" }}
-
+        {% for period in event.periods.all %}
+            {% trans "From" %} {{ period.date_from|date:"j H:i" }} {% trans "to" %} {{ period.date_to|date:"j F H:i" }}
+        {% endfor %}
+        
     <!-- Start and end date are completely different  -->
     {% else %}
 
index f73e138dffa378286716a1eb182fb430bb7f69e8..994a1bca930320f933dc64b134dff8040f6493ff 100644 (file)
@@ -2,9 +2,6 @@
 
 <div class="page__meta-date">
     {% include 'agenda/includes/event_date.html' %}
-    {% if event.date_text %}
-        <span>{{event.date_text}}</span>
-    {% endif %}
 </div>
 
 <div class="page__meta-separator"></div>
index b954cc14931cacbf1d2a33aa11f21fccc62c169d..014c7b0c33e17b59595efbd7672c535a417eba1d 100644 (file)
   {% include "includes/share_buttons.html" %}
 {% endwith %}
 
-{% if video.event %}
-<div class="video-event">
- <h2 class="section__title">{% trans 'Also discover' %}</h2>
-  <div class="msry__container">
-   <div class="msry__sizer"></div>
-    {% with video.event as event %}
-        {% include 'agenda/includes/event_card.html' %}
-    {% for artist in video.artists.all %}
-        {% include "festival/inc/artist_card.html" %}
-    {% endfor %}
-    {% for v in event.videos.all %}
-      {% if v != video %}
-       {% with v as video %}
-        {% include 'festival/inc/video_card.html' %}
-       {% endwith %}
-      {% endif %}
-    {% endfor %}
-    {% for post in event.blog_posts.all %}
-        {% include 'blog/includes/post_card.html' %}
-    {% endfor %}
-    {% endwith %}
-
-</div>
-</div>
-{% endif %}
-
 {% endblock %}
index c7f27712567a3f430d02e66c2013c07681473498..b8bd1ad4c6c3a5f396983741eb85175044aa62a0 100644 (file)
@@ -44,7 +44,7 @@ app:
   volumes:
     - ./app/:/srv/app
     - ./lib/mezzanine-agenda/:/srv/lib/mezzanine-agenda
-    - ./lib/mezzanine/:/srv/lib/mezzanine
+    - ./lib/mezzanine/:/srv/lib/mezzanine
     - ./lib/grappelli-safe/:/srv/lib/grappelli-safe
   volumes_from:
     - data
index 3a58a1b343e3fd9f4cbad3a49d276e2d99bc0d01..6debdb55579fa65eed3ecf0c01ae02b63eb03587 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 3a58a1b343e3fd9f4cbad3a49d276e2d99bc0d01
+Subproject commit 6debdb55579fa65eed3ecf0c01ae02b63eb03587