From: Emilie Date: Thu, 3 Nov 2016 15:02:52 +0000 (+0100) Subject: Task #340: training link X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a4fa1dc7a6575a2779e4cd9055caeba24995790f;p=mezzo.git Task #340: training link --- diff --git a/app/templates/agenda/includes/event_metainfo.html b/app/templates/agenda/includes/event_metainfo.html index b2801346..20185c64 100644 --- a/app/templates/agenda/includes/event_metainfo.html +++ b/app/templates/agenda/includes/event_metainfo.html @@ -1,4 +1,4 @@ -{% load i18n mezzanine_tags event_tags %} +{% load i18n mezzanine_tags event_tags organization_tags %}
{% include 'agenda/includes/event_date.html' %} @@ -58,9 +58,19 @@ {% endif %} {% endfor %}

- - {% trans "Reserve" %} - + {% if event.trainings.all|length %} + {% with event.links.all as links %} + {% if links %} + + {% trans "Reserve" %} + + {% else %} + + {% trans "Reserve" %} + + {% endif %} + {% endwith %} + {% endif %}

{% else %} {% if event.prices.all.0|floatformat != '0' %}