]> git.parisson.com Git - mezzo.git/commitdiff
conditional brochure
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 10 May 2016 14:47:52 +0000 (16:47 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 10 May 2016 14:47:52 +0000 (16:47 +0200)
app/templates/agenda/event_detail.html

index 4a4f231b63f76f74b521b1f2d6fde5adb21e7d7c..00056fdb8d84a99cfbbbd0524bfd309ba979c47c 100644 (file)
 {% endeditable %}
 {% endblock %}
 
+{% if event.brochure %}
 <br/>
-
-<a href='{{ event.brochure.url }}' class="push__calendar__item">
+<a href='{{ event.brochure.url }}' target="_blank" class="push__calendar__item">
     <i class="icon icon__file"></i>
     {% trans "Download" %} {% trans "the room program" %}
 </a>
+{% endif %}
 
 {% block event_detail_sharebuttons %}
 {% set_short_url_for event %}