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 @@