Skip to content

Commit c2c0171

Browse files
committed
add : GOD page comment section added.
1 parent 03ad32f commit c2c0171

File tree

2 files changed

+53
-4
lines changed

2 files changed

+53
-4
lines changed

templates/GOD.html

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@
1111
</audio>
1212
{% endblock %}
1313

14-
{% block sub_table %}
14+
{% block sub_table_1 %}
15+
<h4 class="table_header">Players</h4>
1516
<tr>
1617
<th class="action_table" id="is_comment">C</th>
1718
<th class="action_table" id="player_name">Player Name</th>
1819
<th class="action_table" id="player_role">Player Role</th>
1920
<th class="action_table" id="actions" colspan="3">Actions</th>
2021
</tr>
2122
{% for ip in ip2role_index_name.keys() %}
23+
{% if ip2role_index_name[ip][3] == "alive" %}
2224
<tr class="{{ ip2role_index_name[ip][3] }}">
2325
<td class="action_table" id="is_comment">{% if ip2role_index_name[ip][4] == True%}+{% endif %}</td>
2426
<td class="action_table" id="player_name">{{ ip2role_index_name[ip][2] }}</td>
@@ -27,12 +29,56 @@
2729
<td class="action_table"><a href="/GOD?Comment={{ ip }}">Comment</a></td>
2830
<td class="action_table"><a href="javascript:delay('/GOD?Kill={{ ip }}', 1500)" onclick="kill_sound_play()">Kill</a></td>
2931
</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>
3076
{% endfor %}
3177
{% endblock %}
3278

3379
{% block roles %}
34-
Game Roles:
35-
<br>
80+
<hr>
81+
<h4 class="table_header">Game Roles</h4>
3682
{% for role in roles.keys() %}
3783
{{ role }} : {{ roles[role] }}
3884
<br>

templates/base_action.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
{% block Audio %}
1111
{% endblock %}
1212
<table style="border-collapse: collapse">
13-
{% block sub_table %}{% endblock %}
13+
{% block sub_table_1 %}{% endblock %}
14+
</table>
15+
<table style="border-collapse: collapse">
16+
{% block sub_table_2 %}{% endblock %}
1417
</table>
1518
{% block roles %}
1619
{% endblock %}

0 commit comments

Comments
 (0)