Initial Release
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<!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>
|
||||
a.entry[data-type="directory"] div.icon {
|
||||
background-image: url("/private/icon_folder.png?v={{ .Version }}");
|
||||
}
|
||||
|
||||
a.entry[data-type="directory"]:hover div.icon {
|
||||
background-image: url("/private/icon_folder_open.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"></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"></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" }}">
|
||||
<img class="icon" src="/private/{{ GetEntryIcon .Name .IsDir }}?v={{ $.Version }}">
|
||||
<span class="filename">{{ .Name }}</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="pattern"></div>
|
||||
<div class="graphic"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user