diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2011-12-05 22:38:43 -0500 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2011-12-05 22:38:43 -0500 |
commit | 803d20968fea1e25a298aa3b4e670d5670995e0d (patch) | |
tree | 2f90c6b8403e85576d0109a672dccb46598ce115 /templates/my_pastes.html | |
download | stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.tar.gz stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.tar.bz2 stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.zip |
Added as example app
Diffstat (limited to 'templates/my_pastes.html')
-rw-r--r-- | templates/my_pastes.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/my_pastes.html b/templates/my_pastes.html new file mode 100644 index 0000000..64967ad --- /dev/null +++ b/templates/my_pastes.html @@ -0,0 +1,13 @@ +{% extends "layout.html" %} +{% block title %}My Pastes{% endblock %} +{% from '_pagination.html' import render_pagination %} +{% block body %} + <h2>My Pastes</h2> + <ul> + {% for paste in pagination.items %} + <li><a href="{{ url_for('show_paste', paste_id=paste.id) }}">#{{ paste.id }}</a> + from {{ paste.pub_date.strftime('%Y-%m-%d @ %H:%M') }} + {% endfor %} + </ul> + {{ render_pagination(pagination) }} +{% endblock %} |