]> code.octet-stream.net Git - broadcaster/blob - broadcaster-server/templates/files.html
Add licence, etc.
[broadcaster] / broadcaster-server / templates / files.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Broadcaster</title>
7 </head>
8 <body>
9 <main>
10 <h1>Files! List</h1>
11 <p>All files can be downloaded from the <a href="/file-downloads/">public file listing</a>.</p>
12 <ul>
13 {{range .Files}}
14 <li><b>{{.Name}}</b><form action="/files/delete" method="POST"><input type="hidden" name="filename" value="{{.Name}}"><input type="submit" value="Delete"></form></li>
15 {{end}}
16 </ul>
17 <h2>Upload New File</h2>
18 <p>
19 <form action="/files/upload" method="post" enctype="multipart/form-data">
20 <input type="file" name="file">
21 <input type="submit" value="Upload">
22 </form>
23 </p>
24 </main>
25 </body>
26 </html>