]> code.octet-stream.net Git - broadcaster/blobdiff - broadcaster-server/templates/files.html
Add licence, etc.
[broadcaster] / broadcaster-server / templates / files.html
diff --git a/broadcaster-server/templates/files.html b/broadcaster-server/templates/files.html
new file mode 100644 (file)
index 0000000..fa2614f
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Broadcaster</title>
+  </head>
+  <body>
+    <main>
+      <h1>Files! List</h1>
+      <p>All files can be downloaded from the <a href="/file-downloads/">public file listing</a>.</p>
+      <ul>
+      {{range .Files}}
+        <li><b>{{.Name}}</b><form action="/files/delete" method="POST"><input type="hidden" name="filename" value="{{.Name}}"><input type="submit" value="Delete"></form></li>
+      {{end}}
+      </ul>
+      <h2>Upload New File</h2>
+      <p>
+      <form action="/files/upload" method="post" enctype="multipart/form-data">
+        <input type="file" name="file">
+        <input type="submit" value="Upload">
+      </form>
+      </p>
+    </main>
+  </body>
+</html>