From 3e01e3c71d8a1fe31559df5b2cdd588ade2c5560 Mon Sep 17 00:00:00 2001 From: yomguy Date: Fri, 8 Feb 2013 16:08:46 +0100 Subject: [PATCH] local tweeter only if course.tweeter_title exists --- teleforma/templates/teleforma/course_conference.html | 7 ------- .../templates/teleforma/course_conference_audio.html | 8 -------- teleforma/templates/teleforma/course_detail.html | 4 +++- teleforma/templates/teleforma/course_media.html | 7 ------- 4 files changed, 3 insertions(+), 23 deletions(-) diff --git a/teleforma/templates/teleforma/course_conference.html b/teleforma/templates/teleforma/course_conference.html index 70c4787a..0cfc6b37 100644 --- a/teleforma/templates/teleforma/course_conference.html +++ b/teleforma/templates/teleforma/course_conference.html @@ -88,10 +88,3 @@ {% endblock course %} -{% block chat %} -{% if room %} -{% with "Local tweeter" as title %} -{% include "teleforma/inc/chat_room.html" %} -{% endwith %} -{% endif %} -{% endblock chat %} diff --git a/teleforma/templates/teleforma/course_conference_audio.html b/teleforma/templates/teleforma/course_conference_audio.html index 6c26c2f8..a2995f30 100644 --- a/teleforma/templates/teleforma/course_conference_audio.html +++ b/teleforma/templates/teleforma/course_conference_audio.html @@ -76,11 +76,3 @@ {% endblock course %} - -{% block chat %} -{% if room %} -{% with "Local tweeter" as title %} -{% include "teleforma/inc/chat_room.html" %} -{% endwith %} -{% endif %} -{% endblock chat %} diff --git a/teleforma/templates/teleforma/course_detail.html b/teleforma/templates/teleforma/course_detail.html index 5d8e532e..31ff67ff 100644 --- a/teleforma/templates/teleforma/course_detail.html +++ b/teleforma/templates/teleforma/course_detail.html @@ -48,9 +48,11 @@ $(document).ready(function(){ {% endblock course %} {% block chat %} +{% if course.tweeter_title %} {% if room %} -{% with "Local tweeter" as title %} +{% with "Tweeter"|add:" "|add:course.tweeter_title as title %} {% include "teleforma/inc/chat_room.html" %} {% endwith %} {% endif %} +{% endif %} {% endblock chat %} \ No newline at end of file diff --git a/teleforma/templates/teleforma/course_media.html b/teleforma/templates/teleforma/course_media.html index b291e511..35e8b6c9 100644 --- a/teleforma/templates/teleforma/course_media.html +++ b/teleforma/templates/teleforma/course_media.html @@ -154,10 +154,3 @@ $(document).ready(function(){ {% endblock course %} -{% block chat %} -{% if room %} -{% with "Local tweeter" as title %} -{% include "teleforma/inc/chat_room.html" %} -{% endwith %} -{% endif %} -{% endblock chat %} -- 2.39.5