Browse Source

show talking players with the red lips icon in the channel viewer

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
d67452ec7a
  1. BIN
      htdocs/mumble/talking_on.png
  2. 3
      pyweb/mumble/mmobjects.py
  3. 6
      pyweb/mumble/templates/mumble/player.html

BIN
htdocs/mumble/talking_on.png

After

Width: 16  |  Height: 16  |  Size: 598 B

3
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

6
pyweb/mumble/templates/mumble/player.html

@ -29,7 +29,11 @@
</span>
<span>
<img src="{{ MEDIA_URL }}/mumble/knoten_v.png" alt="" />
<img src="{{ MEDIA_URL }}/mumble/talking_off.png" alt="Player" />
{% 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>
</span>
</div>
Loading…
Cancel
Save