equal
deleted
inserted
replaced
1 [% WRAPPER once.tt %] |
|
2 <h1>Ansicht: [% view %]</h1> |
|
3 |
|
4 [%# The following part is the "inventory", that is, if there are any files %] |
|
5 [% IF files %] |
|
6 <p> |
|
7 Der gültige Download-Link ist die Link-Adresse, die sich hinter |
|
8 dem Datei-Namen verbirgt. (Firefox: Rechte Maustaste, |
|
9 Link-Location). Nach Ablauf des <a href="http://de.wikipedia.org/wiki/Mindesthaltbarkeitsdatum">MHD</a> |
|
10 wird die Datei automatisch gelöscht. |
|
11 </p> |
|
12 |
|
13 <hr /> |
|
14 |
|
15 [%# Table for the files, our repository %] |
|
16 |
|
17 <table> |
|
18 <tr><th>Name</th><th>Größe</th><th>Hochgeladen</th><th>Löschung</hr><th>Aktion</th> |
|
19 </tr> |
|
20 [% FOREACH file IN files %] |
|
21 <tr> |
|
22 <td><a href="[% file.link | url %]">[% file.name | html %]</a></td> |
|
23 <td align="right">[% file.size %]</td> |
|
24 <td>[% date.format(file.uploaded, "%c") %]</td> |
|
25 <td>[% file.removal.type %]</td> |
|
26 <td><a href="[% file.removal.link | url %]">remove</a></td> |
|
27 </td> |
|
28 [% END # foreach %] |
|
29 </table> |
|
30 <hr /> |
|
31 [% END # files %] |
|
32 |
|
33 [%# Form for upload %] |
|
34 <!-- Using a table is stupid, should use more modern HTML --> |
|
35 <form method="post" enctype="multipart/form-data"> |
|
36 <table> |
|
37 <tr><td>Dateiname: </td> |
|
38 <td><input type="file" name="upload" value="nothing" /></td> |
|
39 </tr><tr> |
|
40 <td>Löschen in: </td><td><input type="text" name="expires" value="0" /></td> |
|
41 <td>Tagen (0: unmittelbar nach Download, -1: manuell)</td> |
|
42 </tr><tr> |
|
43 <td /><td><input type="submit" name=".submit" value="Hochladen" /></td> |
|
44 </tr> |
|
45 </table> |
|
46 </form> |
|
47 |
|
48 [% END %] |
|