remove servers which don't reply
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
28c830acfc
commit
c36e6b1947
5 changed files with 32 additions and 12 deletions
|
@ -1,15 +1,15 @@
|
|||
{{define "title"}}
|
||||
{{define "title" -}}
|
||||
<title>Serverlist :: {{.Region}}</title>
|
||||
{{end}}
|
||||
{{- end}}
|
||||
|
||||
{{define "content"}}
|
||||
{{define "content" -}}
|
||||
{{ $gamemodes := .Gamemodes}}
|
||||
{{ $servers := .Servers}}
|
||||
{{ $flags := .Flags}}
|
||||
<div class="container mx-auto px-4 sm:px-8">
|
||||
<div class="py-8">
|
||||
<div>
|
||||
<h2 class="text-2xl font-semibold leading-tight">{{.Region}}</h2>
|
||||
<h2 class="text-2xl font-semibold leading-tight text-white">{{.Region}}</h2>
|
||||
</div>
|
||||
{{range $gamemode := $gamemodes -}}
|
||||
<div class="-mx-4 sm:-mx-8 px-4 sm:px-8 py-4 overflow-x-auto">
|
||||
|
@ -35,6 +35,7 @@
|
|||
<tbody>
|
||||
{{range $server := $servers -}}
|
||||
{{if eq $gamemode.ID $server.GamemodeID -}}
|
||||
{{if ne $server.Map "Server didn't reply." -}}
|
||||
<tr id="content">
|
||||
<td class="px-5 border-b border-gray-200 bg-white" id="flag">
|
||||
{{range $flag := $flags -}}
|
||||
|
@ -58,6 +59,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -67,4 +69,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{end}}
|
||||
{{- end}}
|
||||
|
|
Reference in a new issue