diff --git a/pyweb/mumble/views.py b/pyweb/mumble/views.py index 84fc463..59bff6a 100755 --- a/pyweb/mumble/views.py +++ b/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] ); diff --git a/template/mumble/channel.htm b/template/mumble/channel.htm index 52fcdbb..4d4c91b 100644 --- a/template/mumble/channel.htm +++ b/template/mumble/channel.htm @@ -9,11 +9,11 @@ {{ Channel.name|trunc:30 }} - {% 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 %} diff --git a/template/mumble/server.htm b/template/mumble/server.htm index bf37a5b..8f5b019 100644 --- a/template/mumble/server.htm +++ b/template/mumble/server.htm @@ -4,6 +4,8 @@ {{ Server.name|trunc:30 }} {% 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 %}