After
Width: 16 | Height: 16 | Size: 598 B
@ -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
@ -29,7 +29,11 @@
</span>
<span>
<img src="{{ MEDIA_URL }}/mumble/knoten_v.png" alt="" />
{% if Player.isTalking %}
<img src="{{ MEDIA_URL }}/mumble/talking_on.png" alt="Player" />
{% else %}
<img src="{{ MEDIA_URL }}/mumble/talking_off.png" alt="Player" />
{% endif %}
<a id="link_{{ Player.id }}" class="mumble" href="#" title="{{ Player.name }}">{{ Player.name|trunc:30 }}</a>
</div>