From eaaa0abdfe9ab3296c7a2c9c90bc2f1375655940 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> Date: Fri, 17 Feb 2012 18:31:09 +0100 Subject: [PATCH] added check for show.description. --- templates/program/show_detail.html | 2 ++ templates/program/timeslot_detail.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/templates/program/show_detail.html b/templates/program/show_detail.html index 83371554..c75b3220 100644 --- a/templates/program/show_detail.html +++ b/templates/program/show_detail.html @@ -39,7 +39,9 @@ <div id="short-description" class="documentDescription">{{ show.short_description }}</div> + {% if show.description %} <div id="description">{{ show.description|safe }}</div> + {% endif %} {% if show.image and show.image_enabled %} <div id="image" style="float: right;"><img src="/program/static/{{ show.image }}" width="200" alt="image"></div> diff --git a/templates/program/timeslot_detail.html b/templates/program/timeslot_detail.html index 172255c3..856aef39 100644 --- a/templates/program/timeslot_detail.html +++ b/templates/program/timeslot_detail.html @@ -36,7 +36,9 @@ <div id="short-description" class="documentDescription">{{ timeslot.show.short_description }}</div> + {% if timeslot.show.description %} <div id="description">{{ timeslot.show.description|safe }}</div> + {% endif %} <p> {% for host in timeslot.show.hosts.all %} -- GitLab