forked from OpenTTD/master-server-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_entry.html
131 lines (131 loc) · 3.73 KB
/
server_entry.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}{{ server["info"]["server_name"] }} {% endblock %}</h1>
{% endblock %}
{% block content %}
<p class="cached">This information is cached till {{ expire }}.</p>
<table id="server-info-table">
<tbody>
<tr class="odd">
<th>Online:</th>
<td>
{% if server["online"] %}
Yes
{% else %}
No
{% endif %}
</td>
</tr>
<tr class="even">
<th>First seen:</th>
<td>
{{ server["time_first_seen"] }}
</td>
</tr>
<tr class="odd">
<th>Last queried:</th>
<td>
{{ server["time_last_seen"] }}
</td>
</tr>
<tr class="even">
<th>Clients:</th>
<td>
{{ server["info"]["clients_on"] }} / {{ server["info"]["clients_max"] }}
</td>
</tr>
<tr class="odd">
<th>Companies:</th>
<td>
{{ server["info"]["companies_on"] }} / {{ server["info"]["companies_max"] }}
</td>
</tr>
<tr class="even">
<th>Spectators:</th>
<td>
{{ server["info"]["spectators_on"] }} / {{ server["info"]["spectators_max"] }}
</td>
</tr>
<tr class="odd">
<th>Language:</th>
<td>
{{ languages[server["info"]["server_lang"]] }}
</td>
</tr>
<tr class="even">
<th>Map name:</th>
<td>
{{ server["info"]["map_name"] }}
</td>
</tr>
<tr class="odd">
<th>Landscape:</th>
<td>
{{ mapsets[server["info"]["map_set"]] }}
</td>
</tr>
<tr class="even">
<th>Map size:</th>
<td>
{{ server["info"]["map_width"] }} x {{ server["info"]["map_height"] }}
</td>
</tr>
<tr class="odd">
<th>Server version:</th>
<td>
{{ server["info"]["server_revision"] }}
</td>
</tr>
<tr class="even">
<th>Server address(es):</th>
<td>
{% if "ipv4" in server %}
{{ server["ipv4"]["ip"] }}:{{ server["ipv4"]["port"] }}
{% endif %}
{% if "ipv4" in server and "ipv6" in server %}<br>{% endif %}
{% if "ipv6" in server %}
[{{ server["ipv6"]["ip"] }}]:{{ server["ipv6"]["port"] }}
{% endif %}
</td>
</tr>
<tr class="odd">
<th>Dedicated server:</th>
<td>
{% if server["info"]["dedicated"] == 1 %}
Yes
{% else %}
No
{% endif %}
</td>
</tr>
<tr class="even">
<th>Server password:</th>
<td>
{% if server["info"]["use_password"] == 1 %}
Yes
{% else %}
No
{% endif %}
</td>
</tr>
<tr class="odd">
<th>Start date:</th>
<td>
{{ server["info"]["start_date"] }}
</td>
</tr>
<tr class="even">
<th>Current date:</th>
<td>
{{ server["info"]["game_date"] }}
</td>
</tr>
<tr class="odd">
<th>NewGRFs in use:</th>
<td>
{{ server["info"]["num_grfs"] }}
</td>
</tr>
</tbody>
</table>
{% endblock %}