|
@ -35,14 +35,14 @@ |
|
|
height: 600, |
|
|
height: 600, |
|
|
layout: "border", |
|
|
layout: "border", |
|
|
tbar: [ { |
|
|
tbar: [ { |
|
|
text: gettext("back"), |
|
|
|
|
|
|
|
|
text: gettext("Back to the server list"), |
|
|
xtype: "button", |
|
|
xtype: "button", |
|
|
handler: function(){ |
|
|
handler: function(){ |
|
|
location.href = "{% url mumble.views.mumbles %}"; |
|
|
location.href = "{% url mumble.views.mumbles %}"; |
|
|
} |
|
|
} |
|
|
} ], |
|
|
} ], |
|
|
buttons: [ |
|
|
buttons: [ |
|
|
{% if user.is_staff and ROSETTA_INSTALLED %} |
|
|
|
|
|
|
|
|
{% if user.is_staff and "rosetta" in INSTALLED_APPS %} |
|
|
{ |
|
|
{ |
|
|
xtype: 'buttonIframeWindow', |
|
|
xtype: 'buttonIframeWindow', |
|
|
text: gettext('Edit Translation'), |
|
|
text: gettext('Edit Translation'), |
|
@ -59,6 +59,13 @@ |
|
|
{% if user.is_authenticated %} |
|
|
{% if user.is_authenticated %} |
|
|
new Ext.ux.ButtonLogout() |
|
|
new Ext.ux.ButtonLogout() |
|
|
{% else %} |
|
|
{% else %} |
|
|
|
|
|
{% if 'registration' in INSTALLED_APPS %} |
|
|
|
|
|
{ |
|
|
|
|
|
xtype: 'buttonIframeWindow', |
|
|
|
|
|
text: gettext('Register'), |
|
|
|
|
|
url: '{% url registration.views.register %}', |
|
|
|
|
|
}, |
|
|
|
|
|
{% endif %} |
|
|
new Ext.ux.ButtonLogin() |
|
|
new Ext.ux.ButtonLogin() |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
], |
|
|
], |
|
|