<!doctype html>
<html>

<head>
	<title>Codex.os31.xyz/{{ .BasePath }}</title>
	<link rel="icon" type="image/x-icon" href="/static/post.gif">
	<style>
		table {
			width: auto;
			border-collapse: collapse;
			min-width: 200px;
		}

		body {
			margin: 25px;
		}

		td {
			padding: 5px 25px 5px 0;
		}

		img {
			vertical-align: middle;
		}

		a {
			margin: 10px;
		}
	</style>
</head>

<body>
	<h1>Codex.os31.xyz/{{ .BasePath }}</h1>
	<hr>
	<table>
		{{if .BasePath}}
		<tr>
			<td colspan="2"><img src="/static/folder.gif" alt="Folder"><a href="../">../</a></td>
		</tr>
		{{end}}
		{{range .Folders}}
		<tr>
			<td><img src="/static/folder.gif" alt="Folder"><a href="{{ . }}/">{{ . }}/</a>
			</td>
			<td></td>
		</tr>
		{{end}}
		{{range .Files}}
		<tr>
			<td> <img src="{{ .Icon }}" alt="File"><a href="{{ .ParentPath }}{{ .Name }}">{{ .Name }}</a>
			</td>
			<td class="timestamp">{{ .Timestamp }}</td>
		</tr>
		{{end}}
	</table>
	<hr>
</body>

</html>