forked from matteo/serves3
1
0
Fork 0
serves3/templates/index.html.tera

57 lines
1.4 KiB
Plaintext

<!DOCTYPE html>
<!--
SPDX-FileCopyrightText: © Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
SPDX-License-Identifier: EUPL-1.2
-->
<html>
<head>
<style>
body {
font-family: monospace;
}
th, td {
padding: .3em;
}
thead th {
border-bottom: 1px dotted black;
}
a {
text-decoration: none;
}
</style>
</head>
<body>
<h1>{{ path }}</h1>
<table>
<thead>
<tr>
<th scope="col">Filename</th>
<th scope="col">Size</th>
<th scope="col">Modified</th>
</tr>
</thead>
<tbody>
{% if path != "/" %}
<tr>
<td><a href="../">..</a></td>
<td></td>
<td></td>
</tr>
{% endif %}
{% for object in objects %}
<tr>
<td><a href="{{ object.path | urlencode }}" data-size-bytes="{{ object.size_bytes }}">{{ object.path }}</a></td>
<td>{{ object.size }}</td>
<td>{{ object.last_modification}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html