Skip to content

Commit 721a0f6

Browse files
committed
edit : action secion edited.
1 parent d35a785 commit 721a0f6

File tree

3 files changed

+29
-9
lines changed

3 files changed

+29
-9
lines changed

static/css/style.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,24 @@ th, td {
5454
text-align: center;
5555
}
5656

57-
#player_name{
57+
.alive {
58+
background-color: white;
59+
}
60+
.banned {
61+
background-color: darkgray;
62+
}
63+
.dead {
64+
background-color: red;
65+
}
66+
67+
#player_name {
5868
width: 20%;
5969
}
6070

61-
#player_role{
71+
#player_role {
6272
width: 20%;
6373
}
74+
75+
#is_comment {
76+
width: 5%;
77+
}

templates/GOD.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@
22

33
{% block sub_table %}
44
<tr>
5+
<th class="action_table" id="is_comment">C</th>
56
<th class="action_table" id="player_name">Player Name</th>
67
<th class="action_table" id="player_role">Player Role</th>
7-
<th class="action_table" id="actions">Actions</th>
8+
<th class="action_table" id="actions" colspan="3">Actions</th>
89
</tr>
910
{% for ip in ip2role_index_name.keys() %}
10-
<tr>
11+
<tr class="{{ ip2role_index_name[ip][3] }}">
12+
<td class="action_table" id="is_comment">{% if ip2role_index_name[ip][4] == True%}+{% endif %}</td>
1113
<td class="action_table" id="player_name">{{ ip2role_index_name[ip][2] }}</td>
1214
<td class="action_table" id="player_role">{{ ip2role_index_name[ip][0] }}</td>
13-
<td class="action_table" id="actions">
14-
<a href="#">Ban</a>
15-
<a href="#">Comment</a>
16-
<a href="#">Kill</a>
17-
</td>
15+
<td class="action_table"><a href="/GOD?Ban={{ ip }}">Ban</a></td>
16+
<td class="action_table"><a href="/GOD?Comment={{ ip }}">Comment</a></td>
17+
<td class="action_table"><a href="/GOD?Kill={{ ip }}">Kill</a></td>
1818
</tr>
1919
{% endfor %}
2020
{% endblock %}
21+
22+
{% block messages %}
23+
{{ prompt_message }}
24+
{% endblock %}

templates/base_action.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
<table style="border-collapse: collapse">
99
{% block sub_table %}{% endblock %}
1010
</table>
11+
{% block messages %}
12+
{% endblock %}

0 commit comments

Comments
 (0)