2021-10-01 22:49:47 +02:00
|
|
|
{{define "title"}}
|
|
|
|
<title>Serverlist :: {{.Region}}</title>
|
|
|
|
{{end}}
|
2021-09-24 13:19:44 +02:00
|
|
|
|
2021-10-01 22:49:47 +02:00
|
|
|
{{define "content"}}
|
|
|
|
{{ $gamemodes := .Gamemodes}}
|
|
|
|
{{ $gamemodesCount := .GamemodeCount}}
|
|
|
|
{{ $servers := .Servers}}
|
|
|
|
{{ $flags := .Flags}}
|
2021-10-13 21:23:08 +02:00
|
|
|
{{range $gamemode := $gamemodes -}}
|
|
|
|
{{range $gamemodeCount := $gamemodesCount -}}
|
|
|
|
{{if eq $gamemode.ID $gamemodeCount.ID -}}
|
|
|
|
<div class="content-item-inner2 d-none d-md-block">
|
2021-10-16 15:03:27 +02:00
|
|
|
<table class="sortable">
|
|
|
|
<tr class="content-item-inner3">
|
|
|
|
<th class="content-item-inner4"><h2>{{$gamemode.Name}}</h2></th>
|
|
|
|
<th class="content-item-inner5"><h2>Map</h2></th>
|
|
|
|
<th class="content-item-inner6"><h2>Players</h2></th>
|
|
|
|
</tr>
|
|
|
|
{{range $server := $servers -}}
|
|
|
|
{{if eq $gamemode.ID $server.GamemodeID -}}
|
|
|
|
{{if ne $server.Map "Server didn't reply." -}}
|
|
|
|
<tr class="text-truncate">
|
|
|
|
<td><a href="steam://connect/{{$server.ServerIP}}">
|
|
|
|
{{range $flag := $flags -}}
|
|
|
|
{{if eq $server.ServerIP $flag.ServerIP -}}
|
|
|
|
<img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x>
|
|
|
|
{{- end}}
|
|
|
|
{{- end}}
|
|
|
|
{{$server.Name}}</a></td>
|
|
|
|
<td><p>{{$server.Map}}</p></td>
|
|
|
|
<td><p>{{$server.Players}}/{{$server.MaxPlayers}}</p></td>
|
|
|
|
</tr>
|
|
|
|
{{- end}}
|
|
|
|
{{- end}}
|
|
|
|
{{- end}}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
2021-10-13 21:23:08 +02:00
|
|
|
<div class="content-item-inner2 d-md-none">
|
2021-10-16 15:03:27 +02:00
|
|
|
<table class="sortable">
|
|
|
|
<tr class="content-item-inner3">
|
|
|
|
<th class="content-item-inner4"><h2>{{$gamemode.Name}}</h2></th>
|
|
|
|
<th class="content-item-inner5"><h2>Map</h2></th>
|
|
|
|
<th class="content-item-inner6"><h2>Players</h2></th>
|
|
|
|
</tr>
|
|
|
|
{{range $server := $servers -}}
|
|
|
|
{{if eq $gamemode.ID $server.GamemodeID -}}
|
|
|
|
{{if ne $server.Map "Server didn't reply." -}}
|
|
|
|
<tr class="text-truncate">
|
|
|
|
<td><a href="steam://connect/{{$server.ServerIP}}">
|
|
|
|
{{range $flag := $flags -}}
|
|
|
|
{{if eq $server.ServerIP $flag.ServerIP -}}
|
|
|
|
<img src="https://flagcdn.com/w40/{{$flag.Flag}}.png" srcset="https://flagcdn.com/w80/{{$flag.Flag}}.png" 2x>
|
|
|
|
{{- end}}
|
|
|
|
{{- end}}
|
|
|
|
{{$server.Name}}</a></td>
|
|
|
|
<td><p>{{$server.Map}}</p></td>
|
|
|
|
<td><p>{{$server.Players}}/{{$server.MaxPlayers}}</p></td>
|
|
|
|
</tr>
|
|
|
|
{{- end}}
|
|
|
|
{{- end}}
|
|
|
|
{{- end}}
|
|
|
|
</table>
|
2021-09-24 13:19:44 +02:00
|
|
|
</div>
|
2021-10-01 22:49:47 +02:00
|
|
|
</div>
|
2021-10-13 21:23:08 +02:00
|
|
|
{{- end}}
|
|
|
|
{{- end}}
|
|
|
|
{{- end}}
|
2021-10-01 22:49:47 +02:00
|
|
|
{{end}}
|