From: yomguy Date: Fri, 8 Feb 2013 15:08:46 +0000 (+0100) Subject: local tweeter only if course.tweeter_title exists X-Git-Tag: 1.1~631 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3e01e3c71d8a1fe31559df5b2cdd588ade2c5560;p=teleforma.git local tweeter only if course.tweeter_title exists --- 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 %}