{% load i18n %}
{% block module-action %}
-{% if "telecaster"|installed %}
<script src="{{ STATIC_URL }}teleforma/js/application.js" type="text/javascript"></script>
-{% if 'telecaster'|installed %}
+{% get_telecaster as telecaster %}
+{% if telecaster %}
<script src="{{ STATIC_URL }}telecaster/js/application.js" type="text/javascript"></script>
-{% endif %}
<script type="text/javascript">
var conferenceUtils = {
{% block chat %}
<div id="module-set" style="width: 22%">
-{% if 'telecaster'|installed %}
+{% get_telecaster as telecaster %}
+{% if telecaster %}
<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>
{% endif %}
+
{% if room %}
{% with "Local tweeter" as title %}
{% include "teleforma/inc/chat_room.html" %}
</div>
-{% if 'telecaster'|installed %}
+<script src="{{ STATIC_URL }}teleforma/js/application.js" type="text/javascript"></script>
+{% get_telecaster as telecaster %}
+{% if telecaster %}
<script type="text/javascript">
server_status_callback();
</script>
type = station['type']
conf = station['conf']
port = station['port']
- server, c= StreamingServer.objects.get_or_create(host=status.ip, port=port)
+ server_type = station['server_type']
+ server, c = StreamingServer.objects.get_or_create(host=status.ip, port=port, type=server_type)
station = Station(conference=self.conference, public_id=uuid)
station.setup(conf)
station.start()