From: Guillaume Pellerin Date: Fri, 8 Apr 2016 17:09:39 +0000 (+0200) Subject: fix no events X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e785d3baa6e1bf23c314bf9e9ba8ae9573baa00f;p=mezzo.git fix no events --- diff --git a/app/festival/templates/festival/artist_detail.html b/app/festival/templates/festival/artist_detail.html index fe824117..68b94221 100644 --- a/app/festival/templates/festival/artist_detail.html +++ b/app/festival/templates/festival/artist_detail.html @@ -23,6 +23,7 @@
+{% if artist.events.all %}

{% trans "Also discover" %}


{% for event in artist.events.all %} @@ -36,6 +37,6 @@ {% endfor %} {% endfor %} - +{% endif %} {% endblock %} diff --git a/app/templates/base.html b/app/templates/base.html index 11b40f12..7eb87ccd 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -146,9 +146,11 @@ {% endif %} + {% block content_header %}

{% block title %}{% endblock %}

+ {% endblock %} {% block main %}{% endblock %} diff --git a/app/templates/index.html b/app/templates/index.html index 03660133..701d5c04 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -7,8 +7,11 @@
  • {% trans "Home" %}
  • {% endblock %} +{% block content_header %}{% endblock %} + {% block main %} +

    {% trans "Edito" %}

    {% featured_edito as edito %} {{ edito.content|safe|slice:":446" }}... diff --git a/requirements-dev.txt b/requirements-dev.txt index da9a10c0..015ae5e8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -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/ # +#