|
11 | 11 | </audio>
|
12 | 12 | {% endblock %}
|
13 | 13 |
|
14 |
| -{% block sub_table %} |
| 14 | +{% block sub_table_1 %} |
| 15 | +<h4 class="table_header">Players</h4> |
15 | 16 | <tr>
|
16 | 17 | <th class="action_table" id="is_comment">C</th>
|
17 | 18 | <th class="action_table" id="player_name">Player Name</th>
|
18 | 19 | <th class="action_table" id="player_role">Player Role</th>
|
19 | 20 | <th class="action_table" id="actions" colspan="3">Actions</th>
|
20 | 21 | </tr>
|
21 | 22 | {% for ip in ip2role_index_name.keys() %}
|
| 23 | +{% if ip2role_index_name[ip][3] == "alive" %} |
22 | 24 | <tr class="{{ ip2role_index_name[ip][3] }}">
|
23 | 25 | <td class="action_table" id="is_comment">{% if ip2role_index_name[ip][4] == True%}+{% endif %}</td>
|
24 | 26 | <td class="action_table" id="player_name">{{ ip2role_index_name[ip][2] }}</td>
|
|
27 | 29 | <td class="action_table"><a href="/GOD?Comment={{ ip }}">Comment</a></td>
|
28 | 30 | <td class="action_table"><a href="javascript:delay('/GOD?Kill={{ ip }}', 1500)" onclick="kill_sound_play()">Kill</a></td>
|
29 | 31 | </tr>
|
| 32 | +{% endif %} |
| 33 | +{% endfor %} |
| 34 | + |
| 35 | +{% for ip in ip2role_index_name.keys() %} |
| 36 | +{% if ip2role_index_name[ip][3] == "banned" %} |
| 37 | +<tr class="{{ ip2role_index_name[ip][3] }}"> |
| 38 | + <td class="action_table" id="is_comment">{% if ip2role_index_name[ip][4] == True%}+{% endif %}</td> |
| 39 | + <td class="action_table" id="player_name">{{ ip2role_index_name[ip][2] }}</td> |
| 40 | + <td class="action_table" id="player_role">{{ ip2role_index_name[ip][0] }}</td> |
| 41 | + <td class="action_table"><a href="javascript:delay('/GOD?Ban={{ ip }}', 2000)" onclick="ban_sound_play()">Ban</a></td> |
| 42 | + <td class="action_table"><a href="/GOD?Comment={{ ip }}">Comment</a></td> |
| 43 | + <td class="action_table"><a href="javascript:delay('/GOD?Kill={{ ip }}', 1500)" onclick="kill_sound_play()">Kill</a></td> |
| 44 | +</tr> |
| 45 | +{% endif %} |
| 46 | +{% endfor %} |
| 47 | + |
| 48 | +{% for ip in ip2role_index_name.keys() %} |
| 49 | +{% if ip2role_index_name[ip][3] == "dead" %} |
| 50 | +<tr class="{{ ip2role_index_name[ip][3] }}"> |
| 51 | + <td class="action_table" id="is_comment">{% if ip2role_index_name[ip][4] == True%}+{% endif %}</td> |
| 52 | + <td class="action_table" id="player_name">{{ ip2role_index_name[ip][2] }}</td> |
| 53 | + <td class="action_table" id="player_role">{{ ip2role_index_name[ip][0] }}</td> |
| 54 | + <td class="action_table"><a href="javascript:delay('/GOD?Ban={{ ip }}', 2000)" onclick="ban_sound_play()">Ban</a></td> |
| 55 | + <td class="action_table"><a href="/GOD?Comment={{ ip }}">Comment</a></td> |
| 56 | + <td class="action_table"><a href="javascript:delay('/GOD?Kill={{ ip }}', 1500)" onclick="kill_sound_play()">Kill</a></td> |
| 57 | +</tr> |
| 58 | +{% endif %} |
| 59 | +{% endfor %} |
| 60 | +{% endblock %} |
| 61 | + |
| 62 | +{% block sub_table_2 %} |
| 63 | +<hr> |
| 64 | +<h4 class="table_header">Comments</h4> |
| 65 | +<tr> |
| 66 | + <th class="action_table" id="is_comment">#</th> |
| 67 | + <th class="action_table" id="player_name">Player Name</th> |
| 68 | + <th class="action_table" id="player_role">Player Role</th> |
| 69 | +</tr> |
| 70 | +{% for ip in comments %} |
| 71 | +<tr class="{{ ip2role_index_name[ip][3] }}"> |
| 72 | + <td class="action_table" id="is_comment">{{ comments.index(ip) + 1 }}</td> |
| 73 | + <td class="action_table" id="player_name">{{ ip2role_index_name[ip][2] }}</td> |
| 74 | + <td class="action_table" id="player_role">{{ ip2role_index_name[ip][0] }}</td> |
| 75 | +</tr> |
30 | 76 | {% endfor %}
|
31 | 77 | {% endblock %}
|
32 | 78 |
|
33 | 79 | {% block roles %}
|
34 |
| -Game Roles: |
35 |
| -<br> |
| 80 | +<hr> |
| 81 | +<h4 class="table_header">Game Roles</h4> |
36 | 82 | {% for role in roles.keys() %}
|
37 | 83 | {{ role }} : {{ roles[role] }}
|
38 | 84 | <br>
|
|
0 commit comments