Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.5 KiB
38 lines
1.5 KiB
{% extends "index.html" %}
|
|
{% load staticfiles %}
|
|
{# kate: space-indent on; indent-width 4; replace-tabs on; hl Django HTML Template; #}
|
|
{% load mumble_extras %}
|
|
{% load i18n %}
|
|
{% block body %}
|
|
{% endblock %}
|
|
{% block PageTitle %}Mumble :: {{ MumbleServer.name }}{% endblock %}
|
|
{% block HeadTag %}
|
|
<script type="text/javascript" src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
|
|
<script type="text/javascript" src="{% static 'mumble/js/channelviewer.js' %}"></script>
|
|
<script type="text/javascript" src="{% static 'mumble/js/channelviewerplugins.js' %}"></script>
|
|
<script type="text/javascript">
|
|
Ext.onReady( function(){
|
|
Ext.QuickTips.init();
|
|
mainpanel = new Ext.ux.MumbleChannelViewer({
|
|
//title: "ohai",
|
|
renderTo: Ext.getBody(),
|
|
{% if UsersAboveChannels %}
|
|
usersAboveChannels: true,
|
|
{% endif %}
|
|
source_url: "{% url 'mumble.views.cvp_json' MumbleServer.id %}",
|
|
imageurl: '{% static "mumble/img" %}',
|
|
tbar: [],
|
|
});
|
|
function updateLayout(){
|
|
viewsize = {
|
|
width: Ext.lib.Dom.getViewWidth(),
|
|
height: Ext.lib.Dom.getViewHeight()
|
|
};
|
|
mainpanel.setHeight( viewsize.height );
|
|
mainpanel.setWidth( viewsize.width );
|
|
}
|
|
updateLayout();
|
|
Ext.EventManager.onWindowResize(updateLayout);
|
|
} );
|
|
</script>
|
|
{% endblock %}
|