2013-11-02 18:53:51 -04:00
|
|
|
{{? !master.no_total}}
|
|
|
|
<div class="total">
|
|
|
|
Players: {{=it.total.clients}}/{{=it.total_max.clients}}
|
|
|
|
Servers: {{=it.total.servers}}/{{=it.total_max.servers}}
|
|
|
|
</div>
|
|
|
|
{{?}}
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
{{? !master.no_address}}<th>IP[:Port]</th>{{?}}
|
2013-11-05 12:17:33 -05:00
|
|
|
{{? !master.no_clients}}<th>Players/Max{{? !master.no_avgtop}}<br/>Avg/Top{{?}}</th>{{?}}
|
2013-11-02 18:53:51 -04: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>{{?}}
|
|
|
|
{{? !master.no_ping}}<th>Ping</th>{{?}}
|
|
|
|
</tr>
|
|
|
|
{{~it.list :server:index}}
|
|
|
|
{{ if (master.limit && index + 1 > master.limit) break;}}
|
2013-11-03 18:02:07 -05:00
|
|
|
{{ if (master.min_clients && server.clients < master.min_clients) continue;}}
|
2013-11-02 18:53:51 -04:00
|
|
|
<tr>
|
|
|
|
{{? !master.no_address}}
|
|
|
|
<td class ="address">
|
|
|
|
{{=addressString(server)}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_clients}}
|
2013-11-03 19:55:35 -05:00
|
|
|
<td class="clients{{? server.clients_list && server.clients_list.length > 0}} mts_hover_list_text{{?}}">
|
2013-11-05 12:17:33 -05:00
|
|
|
{{=server.clients}}/{{=server.clients_max}}{{? !master.no_avgtop}} {{=Math.floor(server.pop_v)}}/{{=server.clients_top}}{{?}}
|
2013-11-02 18:53:51 -04:00
|
|
|
{{=hoverList("Clients", server.clients_list)}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_version}}
|
2013-11-03 19:55:35 -05:00
|
|
|
<td class="version{{? server.mods && server.mods.length > 0}} mts_hover_list_text{{?}}">
|
2013-11-02 18:53:51 -04: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 03:59:55 -05:00
|
|
|
<td class="flags {{? server.privs}} mts_hover_list_text{{?}}">
|
|
|
|
{{=hoverString("Privs", server.privs)}}
|
2013-11-02 18:53:51 -04:00
|
|
|
{{=server.creative ? 'Cre ' : ''}}
|
|
|
|
{{=server.dedicated ? 'Ded ' : ''}}
|
|
|
|
{{=server.damage ? 'Dmg ' : ''}}
|
|
|
|
{{=server.liquid_finite ? 'Liq ' : ''}}
|
|
|
|
{{=server.pvp ? 'PvP ' : ''}}
|
|
|
|
{{=server.password ? 'Pwd ' : ''}}
|
|
|
|
{{=server.rollback ? 'Rol ' : ''}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_uptime}}
|
|
|
|
<td class="uptime">
|
|
|
|
{{=humanTime(server.uptime)}}, {{=humanTime(server.game_time)}}
|
|
|
|
</td>{{?}}
|
|
|
|
{{? !master.no_ping}}
|
|
|
|
<td class="ping">
|
|
|
|
{{=Math.floor(server.ping * 1000)}}
|
|
|
|
</td>{{?}}
|
|
|
|
</tr>
|
|
|
|
{{~}}
|
|
|
|
</table>
|
2013-11-03 18:21:53 -05:00
|
|
|
{{? master.min_clients || master.limit}}
|
|
|
|
<a href="#" onclick="delete master.min_clients; delete master.limit; get();">More...</a>
|
|
|
|
{{?}}
|