From 99208f402209cf2b1379850c871696f62cd84eb9 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Tue, 31 Mar 2015 10:29:48 +0100 Subject: [PATCH] Add conditionals to related models links. Bugfix for #41 --- RIGS/templates/RIGS/event_detail.html | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/RIGS/templates/RIGS/event_detail.html b/RIGS/templates/RIGS/event_detail.html index 8a68177d..a0b8003a 100644 --- a/RIGS/templates/RIGS/event_detail.html +++ b/RIGS/templates/RIGS/event_detail.html @@ -36,9 +36,11 @@
Person
- - {{ object.person }} - + {% if object.person %} + + {{ object.person }} + + {% endif %}
Email
@@ -60,9 +62,11 @@
Organisation
- - {{ object.organisation }} - + {% if object.organisation %} + + {{ object.organisation }} + + {% endif %}
Phone Number
@@ -86,7 +90,13 @@
Event Venue
-
{{ object.venue }}
+
+ {% if object.venue %} + + {{ object.venue }} + + {% endif %} +
{% if event.is_rig %}
Event MIC