serves3/templates/index.html.tera

57 lines
1.4 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
<!--
SPDX-FileCopyrightText: © Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
SPDX-License-Identifier: EUPL-1.2
-->
<html>
2023-07-12 16:52:23 +02:00
<head>
<style>
body {
font-family: monospace;
}
th, td {
padding: .3em;
}
thead th {
border-bottom: 1px dotted black;
}
a {
text-decoration: none;
}
</style>
</head>
<body>
2023-07-01 21:31:04 +02:00
<h1>{{ path }}</h1>
2023-07-12 16:52:23 +02:00
<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>
2023-07-12 16:52:23 +02:00
<td>{{ object.size }}</td>
<td>{{ object.last_modification}}</td>
</tr>
{% endfor %}
2023-07-01 21:31:04 +02:00
2023-07-12 16:52:23 +02:00
</tbody>
</table>
</body>
</html