diff --git a/pyweb/mumble/views.py b/pyweb/mumble/views.py index 67efbd5..ac781a6 100755 --- a/pyweb/mumble/views.py +++ b/pyweb/mumble/views.py @@ -73,6 +73,7 @@ def show( request, server ): adminform = None; registered = False; + user = None; if request.user.is_authenticated(): if request.method == 'POST' and 'mode' in request.POST and request.POST['mode'] == 'reg': @@ -119,13 +120,14 @@ def show( request, server ): 'DBaseObject': srv, 'ServerObject': o, 'ChannelTable': Storage.s, - "CurrentUserIsAdmin": isAdmin, - "AdminForm": adminform, - "RegForm": regform, - "TextureForm": textureform, - "Registered": registered, - "DisplayTab": displayTab, - 'MumbleActive': True, + 'CurrentUserIsAdmin': isAdmin, + 'AdminForm': adminform, + 'RegForm': regform, + 'TextureForm': textureform, + 'Registered': registered, + 'DisplayTab': displayTab, + 'MumbleActive': True, + 'MumbleAccount':user, }, context_instance = RequestContext(request) ); diff --git a/template/mumble/content.htm b/template/mumble/content.htm index 7cbe061..27c9dde 100644 --- a/template/mumble/content.htm +++ b/template/mumble/content.htm @@ -4,7 +4,7 @@ mumble - + {{ ServerObject.rootName }} @@ -33,7 +33,7 @@ {% else %} channel {% endif %} - {{ item.1.name|trunc:30 }} + {{ item.1.name|trunc:30 }} {% endif %} diff --git a/template/mumble/mumble.htm b/template/mumble/mumble.htm index 5c25e8a..3beba4c 100644 --- a/template/mumble/mumble.htm +++ b/template/mumble/mumble.htm @@ -98,7 +98,7 @@ {% else %}

Channel {{ item.1.name }}

- Connect + Connect
{% endif %} {% endfor %}