summaryrefslogtreecommitdiff
path: root/fbin/templates/uploaded.html
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 /fbin/templates/uploaded.html
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 'fbin/templates/uploaded.html')
-rw-r--r--fbin/templates/uploaded.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/fbin/templates/uploaded.html b/fbin/templates/uploaded.html
new file mode 100644
index 0000000..84a541c
--- /dev/null
+++ b/fbin/templates/uploaded.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+{% block content %}
+<p>Your file has been uploaded:</p>
+<ul>
+ <li><a href="{{ url_for('.file', hash = file.hash, filename = file.filename, _external = True) }}">{{ url_for('.file', hash = file.hash, filename = file.filename, _external = True) }}</a></li>
+ <li><a href="{{ url_for('.file', hash = file.hash, ext = file.ext, _external = True) }}">{{ url_for('.file', hash = file.hash, ext = file.ext, _external = True) }}</a></li>
+ <li><a href="{{ url_for('.file', hash = file.hash, _external = True) }}">{{ url_for('.file', hash = file.hash, _external = True) }}</a></li>
+</ul>
+{% if current_user.is_authenticated %}
+<p>Your file will also appear in <a href="{{ url_for('.files') }}">your file list</a>.</p>
+{% else %}
+<p>If you were <a href="{{ url_for('.login') }}">logged in</a>, your file would also appear in <a href="{{ url_for('.files') }}">your file list</a>.</p>
+{% endif %}
+{% endblock %}