From a4fa1dc7a6575a2779e4cd9055caeba24995790f Mon Sep 17 00:00:00 2001 From: Emilie Date: Thu, 3 Nov 2016 16:02:52 +0100 Subject: [PATCH] Task #340: training link --- .../agenda/includes/event_metainfo.html | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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' %} -- 2.39.5