]> git.parisson.com Git - mezzo.git/commitdiff
fix no events
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 8 Apr 2016 17:09:39 +0000 (19:09 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 8 Apr 2016 17:09:39 +0000 (19:09 +0200)
app/festival/templates/festival/artist_detail.html
app/templates/base.html
app/templates/index.html
requirements-dev.txt

index fe82411773f236bcfa7acc480734abda435c5975..68b942214a33d70b181c929f29e0d52e85a79d25 100644 (file)
@@ -23,6 +23,7 @@
 </div>
 
 <hr style="margin-top: 3rem;">
+{% if artist.events.all %}
 <h2 class="section__title">{% trans "Also discover" %}</h2> <br>
 
 {% for event in artist.events.all %}
@@ -36,6 +37,6 @@
     {% endfor %}
     {% endfor %}
 </div>
-
+{% endif %}
 
 {% endblock %}
index 11b40f129ea2dc14aa3ea293bbebc3964397a0d7..7eb87ccde348b597dd0949c11d7da8eab76da74b 100644 (file)
                         </div>
                     </div>
                 {% endif %}
+                {% block content_header %}
                 <div class="site__content__header">
                     <h2 class="page__title">{% block title %}{% endblock %}</h2>
                 </div>
+                {% endblock %}
                 {% block main %}{% endblock %}
             </main>
 
index 03660133ff604c17eb14271acd762f2472fac966..701d5c047d2c827cec175ae7cc4db9a82d4300d5 100644 (file)
@@ -7,8 +7,11 @@
 <li class="active">{% trans "Home" %}</li>
 {% endblock %}
 
+{% block content_header %}{% endblock %}
+
 {% block main %}
 
+<h2 class="section__title">{% trans "Edito" %}</h2>
 
 {% featured_edito as edito %}
 {{ edito.content|safe|slice:":446" }}...
index da9a10c0dd67577207bdc3238f2b152c9aedc6f0..015ae5e812e98d590522960ba695da8fe7e9c9ce 100644 (file)
@@ -2,3 +2,4 @@
 -e git+https://github.com/stephenmcd/mezzanine.git#egg=mezzanine-4.1-dev
 https://forge.ircam.fr/p/django-eve/source/download/dev/
 #
+#