]> git.parisson.com Git - teleforma.git/commitdiff
add status to all pages
authoryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 20:42:41 +0000 (22:42 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 20:42:41 +0000 (22:42 +0200)
teleforma/templates/teleforma/course_conference_record.html
teleforma/templates/teleforma/course_detail.html
teleforma/templates/teleforma/courses.html
teleforma/views.py

index a43c7a26d19620ca5117cde83f12a45b161f341e..3637b898dadfdfffb4894a1328c8b5f2332f1cc3 100644 (file)
@@ -64,16 +64,22 @@ jQuery(window).ready(function(){
 
 {% block chat %}
 <div id="module-set" style="width: 22%">
+
 <div class="module">
  <h3><img src="{{STATIC_URL}}teleforma/images/status.png" alt="status" style="vertical-align:middle" /> {% trans "Status" %}</h3>
  <div id="server_status_table_wrapper" class="status"></div>
 </div>
-</div>
-
 <script type="text/javascript">
 server_status_callback();
 </script>
 
+{% if room %}
+{% with "Local tweeter" as title %}
+{% include "teleforma/inc/chat_room.html" %}
+{% endwith %}
+{% endif %}
+
+</div>
 {% endblock chat %}
 
 
index 81db75958fccce62733640698fabe633bd781113..7a91c7ddb547c881d35e7bf30e4c597663fffbf4 100644 (file)
@@ -51,11 +51,21 @@ $(document).ready(function(){
 {% endblock course %}
 
 {% block chat %}
-{% if room %}
 <div id="module-set" style="width: 22%">
+
+<div class="module">
+ <h3><img src="{{STATIC_URL}}teleforma/images/status.png" alt="status" style="vertical-align:middle" /> {% trans "Status" %}</h3>
+ <div id="server_status_table_wrapper" class="status"></div>
+</div>
+<script type="text/javascript">
+server_status_callback();
+</script>
+
+{% if room %}
 {% with "Local tweeter" as title %}
 {% include "teleforma/inc/chat_room.html" %}
 {% endwith %}
-</div>
 {% endif %}
+
+</div>
 {% endblock chat %}
index 14fbe83d04d7c076d62faa3791d8334954387fae..99290e690a1d16898c8bb92e6f5c2ccfcf571447 100644 (file)
@@ -99,13 +99,25 @@ $(document).ready(function(){
 
 
 {% block chat %}
-{% if room %}
 <div id="module-set" style="width: 22%">
+
+<div class="module">
+ <h3><img src="{{STATIC_URL}}teleforma/images/status.png" alt="status" style="vertical-align:middle" /> {% trans "Status" %}</h3>
+ <div id="server_status_table_wrapper" class="status"></div>
+</div>
+</div>
+
+<script type="text/javascript">
+server_status_callback();
+</script>
+
+{% if room %}
 {% with "General tweeter" as title %}
 {% include "teleforma/inc/chat_room.html" %}
 {% endwith %}
-</div>
 {% endif %}
+
+</div>
 {% endblock chat %}
 
 {% endblock content %}
index c34239dda5f74d6e0b731147e28bc81ddfd9d0fe..0df3ee74d83034e3f4e30767820647efc7f9cf31 100755 (executable)
@@ -371,6 +371,9 @@ class ConferenceRecordView(FormView):
         status.update()
         context['host'] = status.ip
         context['hidden_fields'] = self.hidden_fields
+        content_type = ContentType.objects.get(app_label="teleforma", model="conference")
+        context['room'] = get_room(name=conference.course.title, content_type=content_type,
+                                   id=conference.id)
         return context
 
     def get_success_url(self):
@@ -411,7 +414,7 @@ class ConferenceRecordView(FormView):
         f = open(path, 'w')
         f.write(img.read())
         f.close()
-        command = 'sleep 10; /usr/bin/dwepb ' + path + ' -o ' + dir + os.sep + 'preview.png &'
+        command = '/usr/bin/dwepb ' + path + ' -o ' + dir + os.sep + 'preview.png &'
         os.system(command)
 
     @method_decorator(login_required)