From 47aa0ac2a5093b5363c70a90b78e431d4b08e8a0 Mon Sep 17 00:00:00 2001 From: Emilie Date: Thu, 3 Nov 2016 16:49:09 +0100 Subject: [PATCH] Task #340: list + detail button reserve --- .../agenda/includes/event_metainfo.html | 8 ++++---- .../agenda/includes/event_metainfo_line.html | 18 ++++++++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/app/templates/agenda/includes/event_metainfo.html b/app/templates/agenda/includes/event_metainfo.html index 20185c64..7888836f 100644 --- a/app/templates/agenda/includes/event_metainfo.html +++ b/app/templates/agenda/includes/event_metainfo.html @@ -64,12 +64,12 @@ {% trans "Reserve" %} - {% else %} - - {% trans "Reserve" %} - {% endif %} {% endwith %} + {% else %} + + {% trans "Reserve" %} + {% endif %}

{% else %} diff --git a/app/templates/agenda/includes/event_metainfo_line.html b/app/templates/agenda/includes/event_metainfo_line.html index 38a9ab31..c5e40ae8 100644 --- a/app/templates/agenda/includes/event_metainfo_line.html +++ b/app/templates/agenda/includes/event_metainfo_line.html @@ -1,4 +1,4 @@ -{% load i18n mezzanine_tags event_tags %} +{% load i18n mezzanine_tags event_tags organization_tags %}
@@ -18,9 +18,19 @@ {% if event.prices.all.0|floatformat != '0' and event.prices.all|length > 0 and not is_archive %}

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

{% endif %} -- 2.39.5