serves3/templates/index.html.tera
Matteo Settenvini 32e2a5ea4a
chore: migrate to object_store
Move to the more modern and maintained object_store
library to access generic buckets.

We should be able also to do streaming of files now,
and proceed by implementing paginated results for listings
if we want.

Fixes #1.
2025-08-09 22:31:22 +02:00

57 lines
1.4 KiB
Text

<!DOCTYPE html>
<!--
SPDX-FileCopyrightText: © Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
SPDX-License-Identifier: EUPL-1.2
-->
<html>
<head>
<link rel="icon" href="data:image/png;base64,iVBORw0KGgo=">
<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