2013-11-02 23:53:51 +01:00
|
|
|
{{? !master.no_total}}
|
|
|
|
<div class="total">
|
2014-06-30 18:47:50 +02:00
|
|
|
{{? it.total_max && it.total_max.clients > 0}}Players: {{=it.total.clients}}/{{=it.total_max.clients}} {{?}}
|
|
|
|
{{? it.total_max && it.total_max.servers > 0}}Servers: {{=it.total.servers}}/{{=it.total_max.servers}}{{?}}
|
2013-11-02 23:53:51 +01:00
|
|
|
</div>
|
|
|
|
{{?}}
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
{{? !master.no_address}}<th>IP[:Port]</th>{{?}}
|
2013-11-05 18:17:33 +01:00
|
|
|
{{? !master.no_clients}}<th>Players/Max{{? !master.no_avgtop}}<br/>Avg/Top{{?}}</th>{{?}}
|
2013-11-02 23:53:51 +01:00
|
|
|
{{? !master.no_version}}<th>Version, Gameid, MapGen</th>{{?}}
|
|
|
|
{{? !master.no_name}}<th>Name</th>{{?}}
|
|
|
|
{{? !master.no_description}}<th>Description</th>{{?}}
|
|
|
|
{{? !master.no_flags}}<th>Flags</th>{{?}}
|
|
|
|
{{? !master.no_uptime}}<th>Uptime, Age</th>{{?}}
|
2014-01-06 23:50:45 +01:00
|
|
|
{{? !master.no_ping}}<th>Ping, Lag</th>{{?}}
|
2013-11-02 23:53:51 +01:00
|
|
|
</tr>
|
|
|
|
{{~it.list :server:index}}
|
|
|
|
{{ if (master.limit && index + 1 > master.limit) break;}}
|
2013-11-04 00:02:07 +01:00
|
|
|
{{ if (master.min_clients && server.clients < master.min_clients) continue;}}
|
2013-11-02 23:53:51 +01:00
|
|
|
<tr>
|
|
|
|
{{? !master.no_address}}
|
|
|
|
<td class ="address">
|
|
|
|
{{=addressString(server)}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_clients}}
|
2013-11-04 01:55:35 +01:00
|
|
|
<td class="clients{{? server.clients_list && server.clients_list.length > 0}} mts_hover_list_text{{?}}">
|
2013-11-05 18:17:33 +01:00
|
|
|
{{=server.clients}}/{{=server.clients_max}}{{? !master.no_avgtop}} {{=Math.floor(server.pop_v)}}/{{=server.clients_top}}{{?}}
|
2013-11-02 23:53:51 +01:00
|
|
|
{{=hoverList("Clients", server.clients_list)}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_version}}
|
2013-11-04 01:55:35 +01:00
|
|
|
<td class="version{{? server.mods && server.mods.length > 0}} mts_hover_list_text{{?}}">
|
2013-11-02 23:53:51 +01:00
|
|
|
{{=escapeHTML(server.version)}}, {{=escapeHTML(server.gameid)}},
|
|
|
|
{{=escapeHTML(server.mapgen || '?')}}
|
|
|
|
{{=hoverList("Mods", server.mods)}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_name}}
|
|
|
|
<td class="name">
|
|
|
|
{{? server.url}}
|
|
|
|
<a href="{{=escapeHTML(server.url)}}">{{=tooltipString(server.name, 25)}}</a>
|
|
|
|
{{??}}
|
|
|
|
{{=tooltipString(server.name, 25)}}
|
|
|
|
{{?}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_description}}
|
|
|
|
<td class="description">
|
|
|
|
{{=tooltipString(server.description, 50)}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_flags}}
|
2013-11-04 09:59:55 +01:00
|
|
|
<td class="flags {{? server.privs}} mts_hover_list_text{{?}}">
|
|
|
|
{{=hoverString("Privs", server.privs)}}
|
2013-11-02 23:53:51 +01:00
|
|
|
{{=server.creative ? 'Cre ' : ''}}
|
|
|
|
{{=server.dedicated ? 'Ded ' : ''}}
|
|
|
|
{{=server.damage ? 'Dmg ' : ''}}
|
|
|
|
{{=server.liquid_finite ? 'Liq ' : ''}}
|
|
|
|
{{=server.pvp ? 'PvP ' : ''}}
|
|
|
|
{{=server.password ? 'Pwd ' : ''}}
|
|
|
|
{{=server.rollback ? 'Rol ' : ''}}
|
2013-12-03 17:13:33 +01:00
|
|
|
{{=server.can_see_far_names ? 'Far ' : ''}}
|
2013-11-02 23:53:51 +01:00
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_uptime}}
|
|
|
|
<td class="uptime">
|
|
|
|
{{=humanTime(server.uptime)}}, {{=humanTime(server.game_time)}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_ping}}
|
|
|
|
<td class="ping">
|
2014-01-06 23:50:45 +01:00
|
|
|
{{=Math.floor(server.ping * 1000)}}{{? server.lag}}, {{= Math.floor(server.lag * 1000)}}{{?}}
|
2013-11-02 23:53:51 +01:00
|
|
|
</td>{{?}}
|
|
|
|
</tr>
|
|
|
|
{{~}}
|
|
|
|
</table>
|
2013-11-04 00:21:53 +01:00
|
|
|
{{? master.min_clients || master.limit}}
|
2013-12-03 16:48:43 +01:00
|
|
|
<a class="clickable" onclick="delete master.min_clients; delete master.limit; get();">More...</a>
|
2013-11-04 00:21:53 +01:00
|
|
|
{{?}}
|