diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..de399d5 Binary files /dev/null and b/static/favicon.ico differ diff --git a/templates/home.html b/templates/home.html index 6ebb010..5a36779 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,15 +1,15 @@ -{{define "title"}} +{{define "title" -}} Serverlist :: {{.Region}} -{{end}} +{{- end}} -{{define "content"}} +{{define "content" -}} {{ $gamemodes := .Gamemodes}} {{ $servers := .Servers}} {{ $flags := .Flags}}
-

{{.Region}}

+

{{.Region}}

{{range $gamemode := $gamemodes -}}
@@ -35,6 +35,7 @@ {{range $server := $servers -}} {{if eq $gamemode.ID $server.GamemodeID -}} + {{if ne $server.Map "Server didn't reply." -}} {{range $flag := $flags -}} @@ -58,6 +59,7 @@ {{- end}} + {{- end}} {{- end}} @@ -67,4 +69,4 @@
-{{end}} +{{- end}} diff --git a/templates/layout.html b/templates/layout.html index 80ca230..ebdbf5f 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -1,10 +1,21 @@ - - {{block "title" .}}{{end}} + + {{block "title" . -}}{{- end}} + + + + + + + + + + + - + @@ -20,7 +31,7 @@ } - +
- {{block "content" .}}{{end}} + {{block "content" . -}}{{- end}}