fixed displaying empty tables
This commit is contained in:
parent
19e94f036e
commit
47a14e6b82
6 changed files with 268 additions and 11 deletions
|
@ -1,7 +1,9 @@
|
|||
<html lang="en"><head>
|
||||
<title>Serverlist :: {{.Region}}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="https://spenny.tf/favicon.ico"/>
|
||||
<link href="https://unpkg.com/tailwindcss@1.0.4/dist/tailwind.min.css" rel="stylesheet">
|
||||
<style>
|
||||
tr#content {
|
||||
|
@ -15,7 +17,7 @@
|
|||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="flex items-center justify-center" style="background: #edf2f7;">
|
||||
<body class="flex justify-center" style="background: #edf2f7;">
|
||||
<section class="container mx-auto px-8 my-1 flex flex-wrap -m-4">
|
||||
<div class="p-2 md:w-40">
|
||||
<a href="/" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
||||
|
@ -39,14 +41,14 @@
|
|||
</a>
|
||||
</div>
|
||||
<div class="p-2 md:w-40">
|
||||
<a href="#" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
||||
<a href="/australia" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
||||
<div>
|
||||
<p class=" text-xs font-medium ">Australia</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="p-2 md:w-40">
|
||||
<a href="#" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
||||
<a href="/asia" class="flex items-center p-4 bg-blue-200 rounded-lg shadow-xs cursor-pointer hover:bg-blue-500 hover:text-gray-100">
|
||||
<div>
|
||||
<p class=" text-xs font-medium ">Asia</p>
|
||||
</div>
|
||||
|
@ -89,7 +91,7 @@
|
|||
<td class="px-5 border-b border-gray-200 bg-white" id="flag">
|
||||
{{range $flag := $flags}}
|
||||
{{if eq $server.ServerIP $flag.ServerIP}}
|
||||
<img src="https://flagcdn.com/16x12/{{$flag.Flag}}.png">
|
||||
<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}}
|
||||
</td>
|
||||
|
|
Reference in a new issue