templates/inventory.html
changeset 59 ade26fe6ecbb
child 60 e3d6e4095a2c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/inventory.html	Thu Dec 24 00:31:53 2015 +0100
@@ -0,0 +1,37 @@
+<html>
+<!-- some modules the template engine needs -->
+[% PROCESS once.tt -%]
+<head>
+<title>[% product %]</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<style type="text/css">
+    th { text-align: left; }
+</style>
+</head>
+<body>
+<h1>Ansicht: [% view %]</h1>
+<p>
+Der gültige Download-Link ist die Link-Adresse, die sich hinter
+dem Datei-Namen verbirgt. (Firefox: Rechte Maustaste,
+Link-Location).  Nach Ablauf des <a href="http://de.wikipedia.org/wiki/Mindesthaltbarkeitsdatum">MHD</a>
+wird die Datei automatisch gelöscht.
+</p>
+
+<hr />
+
+<table>
+<tr><th>Name</th><th>Größe</th><th>Hochgeladen</th><th>Löschung</hr><th>Aktion</th>
+</tr>
+[% FOREACH file IN files %]
+<tr>
+    <td><a href="[% file.link %]">[% file.name %]</a></td>
+    <td align="right">[% file.size %]</td>
+    <td>[% date.format(file.uploaded, "%c") %]</td>
+    <td>[% file.removal.type %]</td>
+    <td><a href="[% file.removal.link %]">remove</a></td>
+</td>
+[% END %]
+</table>
+[% INCLUDE footer.html %]
+</body>
+</html>