Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
Add views for various methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhatfield committed Aug 24, 2012
1 parent 8b77680 commit db0acf4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions views/upload_generator_result.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>New token creation for {{filename}} complete!</h1>
<p>The one-time link for this file is <a href="/download/{{filename}}?token={{token}}">here</a> (right-click, copy link). It will expire soon after its clicked, and will be inaccessible until a new token is generated.</p>
<p>Every time you refresh this page, a new token link will be generated. They will remain valid until used.</p>
3 changes: 3 additions & 0 deletions views/upload_result.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>Upload for {{filename}} complete!</h1>
<p>The first one-time link for this file is <a href="/download/{{filename}}?token={{token}}">here</a> (right-click, copy link). It will expire soon after its clicked, and will be inaccessible until a new token is generated.</p>
<p>A new (or additional) token will be returned every time you click <a href="/token/{{filename}}?token={{admin_token}}">this link</a>, which you can use to share this file with multiple recipients. You should keep this link, until you don't need to send this file to anyone else.</p>
9 changes: 9 additions & 0 deletions views/upload_view.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<form action="/upload" enctype="multipart/form-data" method="post">
<p>
Please specify a file, or a set of files:<br>
<input type="file" name="data" size="40">
</p>
<div>
<input type="submit" value="Send">
</div>
</form>

0 comments on commit db0acf4

Please sign in to comment.