diff options
author | B. Stack <bgstack15@gmail.com> | 2022-02-13 21:47:21 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-02-13 21:54:20 -0500 |
commit | 85df4b3dc87003ae738f2676a99b88a83f3ac05a (patch) | |
tree | 15b892a06b81451d83f73cf0f8822c9bf262c4af /templates/new_paste.html | |
parent | add redirects after delete, and simplify css calls (diff) | |
download | stackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.tar.gz stackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.tar.bz2 stackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.zip |
add expiry, and wsgi usage to support that
The flask dev server seems incapable of using the @timer
decorator, so we need the whole wsgi implementation, for
which I've added a script.
Arbitrary expiration options are available in the config
file.
Diffstat (limited to 'templates/new_paste.html')
-rw-r--r-- | templates/new_paste.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/new_paste.html b/templates/new_paste.html index 977ef22..b5a78aa 100644 --- a/templates/new_paste.html +++ b/templates/new_paste.html @@ -2,11 +2,14 @@ {% block title %}New Paste{% endblock %} {% block body %} <form action="" method=post> - <h2><div class="pastetitle"><textarea rows="1" name="pastetitle">Enter title here</textarea></div> + <h2><div class="pastetitle"><textarea rows="1" name="pastetitle" placeholder="Untitled paste"></textarea></div> {%- if parent %} - Reply to {{ parent.title }} {%- endif %} - <span class="chk-private"><input name="is_private" type="checkbox"/>Private</span> + <span class="chk-private"><input name="is_private" id="is_private" type="checkbox"/><label for="is_private">Private</label></span> + {% if exp_opts %}<span class="drop-expiration"><label for="exp">Expires:</label><select name="exp" id="exp"> + {% for o in exp_opts %}<option value="{{ o }}">{{ o }}</option>{% endfor %} + </select></span>{% endif %} </h2> <div class=code><textarea name=code cols=60 rows=12>{{ parent.code }}</textarea></div> <p><input type=submit value="New Paste"> |