mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Better masterserver html
This commit is contained in:
parent
288948edf7
commit
0a2de78da4
3 changed files with 23 additions and 6 deletions
|
@ -49,8 +49,12 @@ function success(r) {
|
|||
h += '<tr class="mts_row">';
|
||||
h += '<td class="mts_address">' + e(s.address) + (s.port != 30000 ? (':' + e(s.port)) : '') + '</td>';
|
||||
h += '<td class="mts_clients">' + e(s.clients) + (s.clients_max ? '/' + e(s.clients_max) : '') + (s.clients_top ? ', ' + s.clients_top : '') + '</td>';
|
||||
h += '<td class="mts_version">' + e(s.version) + ' ' + e(s.gameid);
|
||||
var mods;
|
||||
if (s.mods && jQuery.isArray(s.mods)) {
|
||||
mods = 1;
|
||||
}
|
||||
h += '<td class="mts_version' + (mods ? ' mts_ismods' : '') + '">' + e(s.version) + ' ' + e(s.gameid);
|
||||
if (mods) {
|
||||
h += '<div class="mts_mods">Mods:<br/>';
|
||||
for (m in s.mods) {
|
||||
h += s.mods[m] + '<br/>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue