Browse Source

fix the page not being displayed in IE

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
07510cac20
  1. 66
      pyweb/mumble/templates/mumble/mumble.html

66
pyweb/mumble/templates/mumble/mumble.html

@ -14,21 +14,21 @@
background: transparent url({{ MUMBLE_MEDIA_PREFIX }}img/tab-scroller-menu.gif) no-repeat 0 0; background: transparent url({{ MUMBLE_MEDIA_PREFIX }}img/tab-scroller-menu.gif) no-repeat 0 0;
} }
</style> </style>
<script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>
<script type="text/javascript" src="{{ MUMBLE_DJANGO_URL }}mumble/api/api.js"></script>
<script type="text/javascript" src="{{ MUMBLE_DJANGO_URL }}mumble/forms/api.js"></script>
<script type="text/javascript" src="{{ MUMBLE_DJANGO_URL }}mumble/forms/choicescombo.js"></script>
<script type="text/javascript" src="{{ MUMBLE_DJANGO_URL }}mumble/forms/{{ RegForm|lower }}.js"></script>
<script type="text/javascript" src="{{ MUMBLE_DJANGO_URL }}mumble/forms/mumbleform.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/TabScrollerMenu.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/channelviewer.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/channelviewerplugins.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/rendermumbleserver.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/usereditor.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/logviewer.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/banviewer.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/buttoniframewindow.js"></script>
<script type="text/javascript" src="{{ MUMBLE_MEDIA_PREFIX }}js/loginout_buttons.js"></script>
<script src="{% url django.views.i18n.javascript_catalog %}"></script>
<script src="{{ MUMBLE_DJANGO_URL }}mumble/api/api.js"></script>
<script src="{{ MUMBLE_DJANGO_URL }}mumble/forms/api.js"></script>
<script src="{{ MUMBLE_DJANGO_URL }}mumble/forms/choicescombo.js"></script>
<script src="{{ MUMBLE_DJANGO_URL }}mumble/forms/{{ RegForm|lower }}.js"></script>
<script src="{{ MUMBLE_DJANGO_URL }}mumble/forms/mumbleform.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/TabScrollerMenu.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/channelviewer.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/channelviewerplugins.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/rendermumbleserver.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/usereditor.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/logviewer.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/banviewer.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/buttoniframewindow.js"></script>
<script src="{{ MUMBLE_MEDIA_PREFIX }}js/loginout_buttons.js"></script>
<script type="text/javascript"> <script type="text/javascript">
Ext.onReady( function(){ Ext.onReady( function(){
Ext.QuickTips.init(); Ext.QuickTips.init();
@ -48,14 +48,14 @@
{ {
xtype: 'buttonIframeWindow', xtype: 'buttonIframeWindow',
text: gettext('Edit Translation'), text: gettext('Edit Translation'),
url: '{% url rosetta-home %}',
url: '{% url rosetta-home %}'
}, },
{% endif %} {% endif %}
{% if user.is_staff %} {% if user.is_staff %}
{ {
xtype: 'buttonIframeWindow', xtype: 'buttonIframeWindow',
text: gettext('Administration'), text: gettext('Administration'),
url: '{% url admin:mumble_mumble_change MumbleServer.id %}',
url: '{% url admin:mumble_mumble_change MumbleServer.id %}'
}, },
{% endif %} {% endif %}
{% if user.is_authenticated %} {% if user.is_authenticated %}
@ -65,7 +65,7 @@
{ {
xtype: 'buttonIframeWindow', xtype: 'buttonIframeWindow',
text: gettext('Register'), text: gettext('Register'),
url: '{% url registration.views.register %}',
url: '{% url registration.views.register %}'
}, },
{% endif %} {% endif %}
new Ext.ux.ButtonLogin() new Ext.ux.ButtonLogin()
@ -105,22 +105,22 @@
plugins: [ new Ext.ux.TabScrollerMenu() ], plugins: [ new Ext.ux.TabScrollerMenu() ],
items: [{ items: [{
title: gettext("Server info"), title: gettext("Server info"),
html: renderserverinfos( {{ ServerDict|safe }} ),
},
{% if user.is_authenticated %}
html: renderserverinfos( {{ ServerDict|safe }} )
}
{% if user.is_authenticated %},
{ {
title: gettext("Registration"), title: gettext("Registration"),
xtype: "{{ RegForm|lower }}", xtype: "{{ RegForm|lower }}",
pk: {% if MumbleAccount %}{{ MumbleAccount.id }}{% else %}-1{% endif %}, pk: {% if MumbleAccount %}{{ MumbleAccount.id }}{% else %}-1{% endif %},
labelWidth: 150, labelWidth: 150,
baseParams: {serverid: {{MumbleServer.id}} },
baseParams: {serverid: {{MumbleServer.id}} }
}, },
{% if IsAdmin %} {% if IsAdmin %}
{ {
title: gettext("Administration"), title: gettext("Administration"),
pk: {{ MumbleServer.id }}, pk: {{ MumbleServer.id }},
labelWidth: 150, labelWidth: 150,
xtype: 'mumbleform',
xtype: 'mumbleform'
}, },
{% endif %} {% endif %}
{% if MumbleAccount %} {% if MumbleAccount %}
@ -136,13 +136,13 @@
height: 200, height: 200,
title: gettext("Texture"), title: gettext("Texture"),
html: String.format('<img src="{0}" alt="Avatar" id="img_avatar" />', html: String.format('<img src="{0}" alt="Avatar" id="img_avatar" />',
"{% url mumble.views.showTexture MumbleServer.id MumbleAccount.id %}"),
"{% url mumble.views.showTexture MumbleServer.id MumbleAccount.id %}")
}, { }, {
flex: 1, flex: 1,
height: 200, height: 200,
title: gettext("Gravatar"), title: gettext("Gravatar"),
html: String.format('<img src="{0}" alt="grAvatar" />', "{{ MumbleAccount.gravatar }}"),
}],
html: String.format('<img src="{0}" alt="grAvatar" />', "{{ MumbleAccount.gravatar }}")
}]
}, { }, {
region: "center", region: "center",
xtype: "form", xtype: "form",
@ -152,12 +152,12 @@
items: [{ items: [{
name: "usegravatar", name: "usegravatar",
fieldLabel: gettext("Use Gravatar"), fieldLabel: gettext("Use Gravatar"),
xtype: "checkbox",
xtype: "checkbox"
}, { }, {
name: "texturefile", name: "texturefile",
fieldLabel: gettext("Upload Avatar"), fieldLabel: gettext("Upload Avatar"),
xtype: "textfield", xtype: "textfield",
inputType: "file",
inputType: "file"
}], }],
buttons: [{ buttons: [{
text: gettext('Submit'), text: gettext('Submit'),
@ -172,9 +172,9 @@
); );
} }
}); });
},
}],
}],
}
}]
}]
}, },
{% endif %} {% endif %}
{% if IsAdmin %} {% if IsAdmin %}
@ -190,8 +190,8 @@
} }
{% endif %} {% endif %}
{% endif %} {% endif %}
],
}],
]
}]
}); });
function updateLayout(){ function updateLayout(){
viewsize = { viewsize = {

Loading…
Cancel
Save