Don't list item_link on neither trackers nor main patch download page.

This commit is contained in:
CaitSith2
2022-02-23 01:51:49 -08:00
parent 4c64c5ad05
commit 7708d3d157
4 changed files with 31 additions and 14 deletions

View File

@@ -22,7 +22,7 @@
{% if room.last_port %}
You can connect to this room by using '/connect {{ config['PATCH_TARGET'] }}:{{ room.last_port }}'
in the <a href="{{ url_for("tutorial_landing")}}">client</a>.<br>{% endif %}
{{ macros.list_patches_room(room) }}
{{ macros.list_patches_room(room, groups) }}
{% if room.owner == session["_id"] %}
<form method=post>
<div class="form-group">

View File

@@ -6,7 +6,7 @@
{{ caller() }}
</ul>
{%- endmacro %}
{% macro list_patches_room(room) %}
{% macro list_patches_room(room, groups) %}
{% if room.seed.slots %}
<table>
<thead>
@@ -19,7 +19,7 @@
</tr>
</thead>
<tbody>
{% for patch in room.seed.slots|list|sort(attribute="player_id") %}
{% for patch in room.seed.slots|list|sort(attribute="player_id") if patch.player_id not in groups %}
<tr>
<td>{{ patch.player_id }}</td>
<td>{{ patch.player_name }}</td>