summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-01-01 13:17:08 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2012-01-01 13:18:33 +0100
commitbaee8206b8338b1d4a9712eeec916d39da633ba6 (patch)
tree186c702e9db69a017bc6363aa5b5f097515c8ea2 /templates
parentf1bcac65a68e67bff8322e238d9e5e39d3227e5f (diff)
Added a 'del' link to allow deleting files.
Diffstat (limited to 'templates')
-rw-r--r--templates/__init__.py1
-rw-r--r--templates/delete.tmpl9
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/__init__.py b/templates/__init__.py
index 5c9f28e..a8a47b8 100644
--- a/templates/__init__.py
+++ b/templates/__init__.py
@@ -6,3 +6,4 @@ from my import my
from images import images
from register import register
from changepass import changepass
+from delete import delete
diff --git a/templates/delete.tmpl b/templates/delete.tmpl
new file mode 100644
index 0000000..62216d5
--- /dev/null
+++ b/templates/delete.tmpl
@@ -0,0 +1,9 @@
+#def title: delete
+#def header: delete
+#extends templates.base
+#def content
+ <form method="post" action="${root}d/$hash">
+ <p>Are you sure you want to delete the file $filename?</p>
+ <p><input type="submit" value="Yes" /> <input type="button" value="No" onclick="document.location = '${root}u'" /></p>
+ </form>
+#end def