dorfylegends/backend/templates/load.html
2022-04-26 15:39:24 +00:00

23 lines
No EOL
576 B
HTML

{{template "layout.html" .}}
{{define "title"}}Loading{{end}}
{{define "content"}}
<h1>Loading</h1>
<ul>
<li><a href="/load?p={{ (printf `%s/..` $.Current) }}&x=1">..</a></li>
{{- range $f := .List }}
{{- if $f.IsDir }}
<li><a href="/load?p={{ (printf `%s/%s` $.Current $f.Name) }}&x=1">{{$f.Name}}</a></li>
{{- end }}
{{- end }}
{{- range $f := .List }}
{{- if isLegendsXml $f }}
<li>+<a href="/load?p={{ (printf `%s/%s` $.Current $f.Name) }}&x=1">{{$f.Name}}</a></li>
{{- end }}
{{- end }}
</ul>
<p>{{ json . }}</p>
{{- end }}