04aa748bc9
saves like 3kb :p
78 lines
2.8 KiB
HTML
78 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="stylesheet" href="/private/styles.css?v={{ .Version }}">
|
|
<link rel="icon" href="/private/favicon.png?v={{ .Version }}">
|
|
<title>Browser: {{ .Path }}</title>
|
|
<style>
|
|
div.pattern {
|
|
background-image: url("/private/bg_pattern.png?v={{ .Version }}");
|
|
}
|
|
|
|
div.graphic {
|
|
background-image: url("/private/bg_graphic.png?v={{ .Version }}");
|
|
}
|
|
|
|
a.entry div.icon {
|
|
background-image: url("/private/icon_grid.png?v={{ .Version }}");
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="foreground">
|
|
<div class="header">
|
|
<span class="pathname">{{ .Path }}</span>
|
|
<div class="actions">
|
|
<span>Links:</span>
|
|
<a href="/">Top</a>
|
|
<a href="https://pancakz.net">Homepage</a>
|
|
|
|
<span>Sort:</span>
|
|
<form method="POST" action="/preferences/sort">
|
|
<input type="hidden" name="sort" value="alpha">
|
|
<input type="hidden" name="redirect" value="{{ .Path }}">
|
|
<button type="submit">Alphabetical</button>
|
|
</form>
|
|
<form method="POST" action="/preferences/sort">
|
|
<input type="hidden" name="sort" value="modified">
|
|
<input type="hidden" name="redirect" value="{{ .Path }}">
|
|
<button type="submit">Modified</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class="directory">
|
|
|
|
{{ if .Parent }}
|
|
<a class="entry" data-type="directory" data-ignore="true" href="{{ .Parent }}">
|
|
<div class="icon icon-directory"></div>
|
|
<span class="filename">../</span>
|
|
</a>
|
|
{{ end }}
|
|
|
|
{{ range .Item }}
|
|
{{ if .IsDir }}
|
|
<a class="entry" data-type="directory" href="{{ EncodeURI .Name }}/" title="{{ .Name }} Modified: {{ .ModTime.Format " 2006-01-02 15:04" }}">
|
|
<div class="icon icon-directory"></div>
|
|
<span class="filename">{{ .Name }}</span>
|
|
</a>
|
|
{{ else }}
|
|
<a class="entry" data-type="file" href="{{ EncodeURI .Name }}" title="Name: {{ .Name }} Size: {{ GetEntrySizeHuman .Size }} Modified: {{ .ModTime.Format " 2006-01-02 15:04" }}">
|
|
<div class="icon {{ GetEntryIcon .Name .IsDir }}"></div>
|
|
<span class="filename">{{ .Name }}</span>
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
</div>
|
|
</div>
|
|
<div class="pattern"></div>
|
|
<div class="graphic"></div>
|
|
</body>
|
|
|
|
</html>
|