diff --git a/pyweb/mumble/mmobjects.py b/pyweb/mumble/mmobjects.py index 231356d..453b94d 100644 --- a/pyweb/mumble/mmobjects.py +++ b/pyweb/mumble/mmobjects.py @@ -204,6 +204,11 @@ class mmPlayer( object ): def isAuthed( self ): return self.dbaseid != -1; + isAdmin = property( + lambda self: self.mumbleuser and self.mumbleuser.getAdmin(), + None + ); + def is_server( self ): return False; def is_channel( self ): diff --git a/template/mumble/list.htm b/template/mumble/list.htm index fe0d4e1..ad76e47 100644 --- a/template/mumble/list.htm +++ b/template/mumble/list.htm @@ -1,8 +1,10 @@ {% extends "index.htm" %} {% load mumble_extras %} +{% block Headline %} +Configured Mumble Servers +{% endblock %} {% block Content %}
-

Configured Mumble Servers