aboutsummaryrefslogtreecommitdiff
path: root/templates/show_paste.html
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-02-13 21:47:21 -0500
committerB. Stack <bgstack15@gmail.com>2022-02-13 21:54:20 -0500
commit85df4b3dc87003ae738f2676a99b88a83f3ac05a (patch)
tree15b892a06b81451d83f73cf0f8822c9bf262c4af /templates/show_paste.html
parentadd redirects after delete, and simplify css calls (diff)
downloadstackbin-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/show_paste.html')
-rw-r--r--templates/show_paste.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/show_paste.html b/templates/show_paste.html
index 03d57b1..e9ed02a 100644
--- a/templates/show_paste.html
+++ b/templates/show_paste.html
@@ -9,7 +9,9 @@
<dd>{{ paste.user.display_name }}
{% endif %}
<dt>Date
- <dd>{{ paste.pub_date.strftime('%Y-%m-%dT%H:%M:%SZ') }}
+ <dd>{{ paste.pub_date.strftime('%FT%TZ') }}
+ {% if paste.exp_date and paste.exp_date != paste.pub_date %}<dt>Expires
+ <dd>{{ paste.exp_date.strftime('%FT%TZ') }}{% endif %}
<dt>Actions
<dd>
{% if not paste.is_private %}
bgstack15