{{define "title"}}Mirrorlist {{.FileInfo.Path}}{{end}}
{{define "headline"}}{{.FileInfo.Path}}{{end}}
{{define "head"}}
{{end}}
{{define "body"}}
Client
IP: | {{.IP}} |
Country: | {{if .ClientInfo.GeoIPRecord}}{{.ClientInfo.CountryName}}{{else}}Unknown{{end}} |
City: | {{if .ClientInfo.GeoIPRecord}}{{.ClientInfo.City}}{{else}}Unknown{{end}} |
ASN: | {{if .ClientInfo.GeoIPRecord}}{{.ClientInfo.ASNum}} / {{.ClientInfo.ASName}}{{else}}Unknown{{end}} |
Mirrors
{{if .Fallback}}
Warning: system is running in degraded mode.
{{end}}
{{if .MirrorList}}
Rank | URL | Country | Continent | Distance | Probabilistic weight | File size |
{{end}}
{{range $i, $v := .MirrorList}}
#{{add $i 1}} | {{$v.HttpURL}} | {{$v.CountryCodes}} | {{$v.ContinentCode}} | {{printf "%.2f" $v.Distance}}Km | {{if $v.Weight}}{{$v.Weight}}%{{else}}N/A{{end}} | {{if $v.FileInfo}}{{$v.FileInfo.Size}}{{end}} |
{{else}}
No mirrors for this file
{{end}}
{{if .MirrorList}}
{{end}}
{{if .ExcludedList}}
Excluded Mirrors
{{end}}
{{range $i, $v := .ExcludedList}}
{{$v.HttpURL}} | {{printf "%.2f" $v.Distance}}Km | {{$v.ExcludeReason}} |
{{end}}
{{if .ExcludedList}}
{{end}}
{{end}}