Browse Source

fixed my last two fixes. it was just too late at night yesterday.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
35df252d55
  1. 2
      pyweb/mumble/views.py
  2. 10
      template/mumble/channel.htm
  3. 4
      template/mumble/server.htm

2
pyweb/mumble/views.py

@ -112,7 +112,7 @@ def show( request, server ):
# ChannelTable is a somewhat misleading name, as it actually contains channels and players.
channelTable = [];
for id in srv.channels:
if id != 0 and ( srv.channels[id].show or srv.channels[id].parent.show ):
if id != 0 and srv.channels[id].show:
channelTable.append( srv.channels[id] );
for id in srv.players:
channelTable.append( srv.players[id] );

10
template/mumble/channel.htm

@ -9,11 +9,11 @@
<a href="{{ Channel|chanurl:MumbleAccount }}" class="mumble" id="link_{{ Channel.id }}" title="{{ Channel.name }}">
{{ Channel.name|trunc:30 }}
</a>
{% if Channel.show %}
{% for sub in Channel.subchans %}
{% for sub in Channel.subchans %}
{% if sub.show %}
{{ sub|chanview:MumbleAccount }}
{% endfor %}
{% for player in Channel.players %}{{ player|chanview }}{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% for player in Channel.players %}{{ player|chanview }}{% endfor %}
</div>

4
template/mumble/server.htm

@ -4,6 +4,8 @@
<a class="mumble" id="link_server" href="{{ Server|chanurl:MumbleAccount }}">{{ Server.name|trunc:30 }}</a>
</div>
{% for sub in Server.rootchan.subchans %}
{{ sub|chanview:MumbleAccount }}
{% if sub.show %}
{{ sub|chanview:MumbleAccount }}
{% endif %}
{% endfor %}
{% for player in Server.rootchan.players %}{{ player|chanview }}{% endfor %}
Loading…
Cancel
Save