Browse Source

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

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
35df252d55
  1. 2
      pyweb/mumble/views.py
  2. 4
      template/mumble/channel.htm
  3. 2
      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 is a somewhat misleading name, as it actually contains channels and players.
channelTable = []; channelTable = [];
for id in srv.channels: 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] ); channelTable.append( srv.channels[id] );
for id in srv.players: for id in srv.players:
channelTable.append( srv.players[id] ); channelTable.append( srv.players[id] );

4
template/mumble/channel.htm

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

2
template/mumble/server.htm

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