fixed whitespaces in html
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Philipp 2021-10-01 23:01:27 +02:00
parent 525adadbc1
commit 28c830acfc
2 changed files with 24 additions and 24 deletions

View file

@ -11,7 +11,7 @@
<div> <div>
<h2 class="text-2xl font-semibold leading-tight">{{.Region}}</h2> <h2 class="text-2xl font-semibold leading-tight">{{.Region}}</h2>
</div> </div>
{{range $gamemode := $gamemodes}} {{range $gamemode := $gamemodes -}}
<div class="-mx-4 sm:-mx-8 px-4 sm:px-8 py-4 overflow-x-auto"> <div class="-mx-4 sm:-mx-8 px-4 sm:px-8 py-4 overflow-x-auto">
<div class="inline-block min-w-full shadow rounded-lg overflow-hidden"> <div class="inline-block min-w-full shadow rounded-lg overflow-hidden">
<table class="min-w-full leading-normal"> <table class="min-w-full leading-normal">
@ -33,15 +33,15 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{range $server := $servers}} {{range $server := $servers -}}
{{if eq $gamemode.ID $server.GamemodeID}} {{if eq $gamemode.ID $server.GamemodeID -}}
<tr id="content"> <tr id="content">
<td class="px-5 border-b border-gray-200 bg-white" id="flag"> <td class="px-5 border-b border-gray-200 bg-white" id="flag">
{{range $flag := $flags}} {{range $flag := $flags -}}
{{if eq $server.ServerIP $flag.ServerIP}} {{if eq $server.ServerIP $flag.ServerIP -}}
<img src="https://flagcdn.com/16x12/{{$flag.Flag}}.png" srcset="https://flagcdn.com/32x24/{{$flag.Flag}}.png 2x, https://flagcdn.com/48x36/{{$flag.Flag}}.png 3x" width="16" height="12"> <img src="https://flagcdn.com/16x12/{{$flag.Flag}}.png" srcset="https://flagcdn.com/32x24/{{$flag.Flag}}.png 2x, https://flagcdn.com/48x36/{{$flag.Flag}}.png 3x" width="16" height="12">
{{end}} {{- end}}
{{end}} {{- end}}
</td> </td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm" id="name"> <td class="px-5 py-5 border-b border-gray-200 bg-white text-sm" id="name">
<div class="flex items-center"> <div class="flex items-center">
@ -57,13 +57,13 @@
<p class="text-gray-900 whitespace-no-wrap">{{$server.Players}}/{{$server.MaxPlayers}}</p> <p class="text-gray-900 whitespace-no-wrap">{{$server.Players}}/{{$server.MaxPlayers}}</p>
</td> </td>
</tr> </tr>
{{end}} {{- end}}
{{end}} {{- end}}
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
{{end}} {{- end}}
</div> </div>
</div> </div>
</section> </section>

View file

@ -12,9 +12,9 @@
<div> <div>
<h2 class="text-2xl font-semibold leading-tight">{{.Region}}</h2> <h2 class="text-2xl font-semibold leading-tight">{{.Region}}</h2>
</div> </div>
{{range $gamemode := $gamemodes}} {{range $gamemode := $gamemodes -}}
{{range $gamemodeCount := $gamemodesCount}} {{range $gamemodeCount := $gamemodesCount -}}
{{if eq $gamemode.ID $gamemodeCount.ID}} {{if eq $gamemode.ID $gamemodeCount.ID -}}
<div class="-mx-4 sm:-mx-8 px-4 sm:px-8 py-4 overflow-x-auto"> <div class="-mx-4 sm:-mx-8 px-4 sm:px-8 py-4 overflow-x-auto">
<div class="inline-block min-w-full shadow rounded-lg overflow-hidden"> <div class="inline-block min-w-full shadow rounded-lg overflow-hidden">
<table class="min-w-full leading-normal"> <table class="min-w-full leading-normal">
@ -36,15 +36,15 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{range $server := $servers}} {{range $server := $servers -}}
{{if eq $gamemode.ID $server.GamemodeID}} {{if eq $gamemode.ID $server.GamemodeID -}}
<tr id="content"> <tr id="content">
<td class="px-5 border-b border-gray-200 bg-white" id="flag"> <td class="px-5 border-b border-gray-200 bg-white" id="flag">
{{range $flag := $flags}} {{range $flag := $flags -}}
{{if eq $server.ServerIP $flag.ServerIP}} {{if eq $server.ServerIP $flag.ServerIP -}}
<img src="https://flagcdn.com/16x12/{{$flag.Flag}}.png" srcset="https://flagcdn.com/32x24/{{$flag.Flag}}.png 2x, https://flagcdn.com/48x36/{{$flag.Flag}}.png 3x" width="16" height="12"> <img src="https://flagcdn.com/16x12/{{$flag.Flag}}.png" srcset="https://flagcdn.com/32x24/{{$flag.Flag}}.png 2x, https://flagcdn.com/48x36/{{$flag.Flag}}.png 3x" width="16" height="12">
{{end}} {{- end}}
{{end}} {{- end}}
</td> </td>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm" id="name"> <td class="px-5 py-5 border-b border-gray-200 bg-white text-sm" id="name">
<div class="flex items-center"> <div class="flex items-center">
@ -60,15 +60,15 @@
<p class="text-gray-900 whitespace-no-wrap">{{$server.Players}}/{{$server.MaxPlayers}}</p> <p class="text-gray-900 whitespace-no-wrap">{{$server.Players}}/{{$server.MaxPlayers}}</p>
</td> </td>
</tr> </tr>
{{end}} {{- end}}
{{end}} {{- end}}
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
{{end}} {{- end}}
{{end}} {{- end}}
{{end}} {{- end}}
</div> </div>
</div> </div>
</section> </section>