summaryrefslogtreecommitdiff
path: root/templates/upload.tmpl
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2017-04-09 09:02:09 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2017-04-09 09:02:09 +0200
commitb36f9c05071ea549ed59e703270fcf223b60df03 (patch)
tree8992c6bcaa5b0d64cbd589588b2539523125548c /templates/upload.tmpl
parentaf750a6598d53b8a5cb58092dd5b523ea7e967ca (diff)
Major rewrite to use jab/oauth.
Highlights: - Uses the oauth branch of jab. - Changed design to use bootstrap. - Some minor changes to functionality in file uploading and listing. - API is currently disabled and incomplete.
Diffstat (limited to 'templates/upload.tmpl')
-rw-r--r--templates/upload.tmpl23
1 files changed, 0 insertions, 23 deletions
diff --git a/templates/upload.tmpl b/templates/upload.tmpl
deleted file mode 100644
index 87f50ea..0000000
--- a/templates/upload.tmpl
+++ /dev/null
@@ -1,23 +0,0 @@
-#def title: upload
-#def header: upload
-#extends templates.base
-#def head
- <script type="text/javascript">
- function file_changed() {
- s = document.getElementById('file').value;
- i = s.lastIndexOf('/');
- if(i < 0)
- i = s.lastIndexOf('\\');
- if(i >= 0)
- s = s.substr(i+1);
- document.getElementById('filename').value = s;
- }
- </script>
-#end def
-#def content
- <form method="post" action="${settings.virtual_root}u" enctype="multipart/form-data">
- <input type="hidden" id="filename" name="filename" />
- <p><input type="file" id="file" name="file" onchange="file_changed()" /></p>
- <p><input type="submit" value="Upload" /></p>
- </form>
-#end def