]> git.parisson.com Git - teleforma.git/commitdiff
add room to record page
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 11 Jul 2013 22:43:40 +0000 (00:43 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 11 Jul 2013 22:43:40 +0000 (00:43 +0200)
teleforma/templates/teleforma/course_conference_record.html
teleforma/views/core.py

index c8fa3de6dd7e06982e4e4b78b20ee3c15f35a5e8..999b3daf72bb8148cbbde2f4137de23265195daa 100644 (file)
@@ -3,6 +3,7 @@
 {% load teleforma_tags %}
 {% load i18n %}
 
+
 {% block extra_javascript %}
 <script type="text/javascript">
 
@@ -12,6 +13,13 @@ jQuery(window).ready(function(){
     a.unbind('click').click(function(){f.submit();return false;});
     });
 </script>
+
+<script type="text/javascript">
+$(document).ready(function(){
+    InitChatWindow("{% url jqchat_ajax room.id %}", null);
+    });
+</script>
+
 {% endblock extra_javascript %}
 
 
@@ -71,6 +79,13 @@ jQuery(window).ready(function(){
 {% endblock course %}
 
 
+{% block chat %}
+{% if room %}
+{% with "General tweeter" as title %}
+{% include "teleforma/inc/chat_room.html" %}
+{% endwith %}
+{% endif %}
+{% endblock chat %}
 
 {% block status %}
 {% endblock status %}
index 1d3ac685208f364cb9bee041708b902c1c3b6c2b..8f25d69bd1f87a42bf68924f0c60f726acd5ebc3 100644 (file)
@@ -121,7 +121,7 @@ def stream_from_file(__file):
 
 
 def get_room(content_type=None, id=None, name=None):
-    if settings.TELEFORMA_GLOBAL_TWEETER or 'site' in name:
+    if settings.TELEFORMA_GLOBAL_TWEETER or 'site' in name or 'monitor' in name:
         rooms = jqchat.models.Room.objects.filter(name=name)
 
     else:
@@ -129,7 +129,6 @@ def get_room(content_type=None, id=None, name=None):
                                                   content_type=content_type,
                                                   object_id=id)
     if not rooms:
-        print name
         room = jqchat.models.Room.objects.create(content_type=content_type,
                                                  object_id=id,
                                                  name=name[:20])