diff --git a/htdocs/mumble/talking_on.png b/htdocs/mumble/talking_on.png new file mode 100644 index 0000000..defc296 Binary files /dev/null and b/htdocs/mumble/talking_on.png differ diff --git a/pyweb/mumble/mmobjects.py b/pyweb/mumble/mmobjects.py index 549737b..6595c78 100644 --- a/pyweb/mumble/mmobjects.py +++ b/pyweb/mumble/mmobjects.py @@ -268,6 +268,9 @@ class mmPlayer( object ): doc="True if this player is in the Admin group in the ACL." ) + # Totally ripped from Pimmetje + isTalking = property( lambda self: self.idlesecs == 0, doc="True if this player is currently talking." ) + is_server = False is_channel = False is_player = True diff --git a/pyweb/mumble/templates/mumble/player.html b/pyweb/mumble/templates/mumble/player.html index d494625..9d00d60 100644 --- a/pyweb/mumble/templates/mumble/player.html +++ b/pyweb/mumble/templates/mumble/player.html @@ -29,7 +29,11 @@ - Player + {% if Player.isTalking %} + Player + {% else %} + Player + {% endif %} {{ Player.name|trunc:30 }}