Add client descriptions

This commit is contained in:
2024-05-18 11:17:52 +02:00
parent 7a5f4ce13a
commit 2a965f375f
4 changed files with 107 additions and 12 deletions

View File

@ -129,16 +129,16 @@ if ($format === 'json') {
<main>
<section>
<h3>Downloads</h3>
<p style="text-align: center;"><a href="/">Startseite</a></p>
<p class="center"><a href="/">Startseite</a></p>
<table>
<thead><tr><th>Name</th><th>Größe</th><th>Änderungsdatum</th></tr></thead>
<tbody>
<?php foreach (array_reverse($entities) as $name => [$prod, $vers, $url, $size, $mtime, $ctime, $mod, $cre]) {
echo " <tr><td><a href='/files/$name'>$name</a></td><td>" . number_format($size / 1024 / 1024, 1) . " MB</td><td>" . date('d.m.Y, H:i', $mtime) . "</td></tr>\n";
echo " <tr><td><a href=\"/files/$name\">$name</a></td><td>" . number_format($size / 1024 / 1024, 1) . " MB</td><td>" . date('d.m.Y, H:i', $mtime) . "</td></tr>\n";
} ?>
</tbody>
</table>
<p style="text-align: center;"><a href="?format=json">JSON-Format</a></p>
<p class="center"><a href="?format=json">JSON-Format</a></p>
</section>
</main>
</body>