diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2012-02-17 17:31:09 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2012-02-17 17:31:09 (GMT) |
commit | eaaa0abdfe9ab3296c7a2c9c90bc2f1375655940 (patch) | |
tree | d31b2113084e73c841150c6a02d86432600b438b /templates | |
parent | 3abb85cea4d9d73722feabcf43b34fc5140e62ef (diff) |
added check for show.description.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/program/show_detail.html | 2 | ||||
-rw-r--r-- | templates/program/timeslot_detail.html | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/templates/program/show_detail.html b/templates/program/show_detail.html index 8337155..c75b322 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 172255c..856aef3 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 %} |