File tree Expand file tree Collapse file tree 3 files changed +29
-9
lines changed Expand file tree Collapse file tree 3 files changed +29
-9
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,24 @@ th, td {
54
54
text-align : center;
55
55
}
56
56
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 {
58
68
width : 20% ;
59
69
}
60
70
61
- # player_role {
71
+ # player_role {
62
72
width : 20% ;
63
73
}
74
+
75
+ # is_comment {
76
+ width : 5% ;
77
+ }
Original file line number Diff line number Diff line change 2
2
3
3
{% block sub_table %}
4
4
< tr >
5
+ < th class ="action_table " id ="is_comment "> C</ th >
5
6
< th class ="action_table " id ="player_name "> Player Name</ th >
6
7
< 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 >
8
9
</ tr >
9
10
{% 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 >
11
13
< td class ="action_table " id ="player_name "> {{ ip2role_index_name[ip][2] }}</ td >
12
14
< 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 >
18
18
</ tr >
19
19
{% endfor %}
20
20
{% endblock %}
21
+
22
+ {% block messages %}
23
+ {{ prompt_message }}
24
+ {% endblock %}
Original file line number Diff line number Diff line change 8
8
< table style ="border-collapse: collapse ">
9
9
{% block sub_table %}{% endblock %}
10
10
</ table >
11
+ {% block messages %}
12
+ {% endblock %}
You can’t perform that action at this time.
0 commit comments