aboutsummaryrefslogtreecommitdiff
path: root/templates/show_paste.html
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2011-12-05 22:38:43 -0500
committerArmin Ronacher <armin.ronacher@active-4.com>2011-12-05 22:38:43 -0500
commit803d20968fea1e25a298aa3b4e670d5670995e0d (patch)
tree2f90c6b8403e85576d0109a672dccb46598ce115 /templates/show_paste.html
downloadstackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.tar.gz
stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.tar.bz2
stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.zip
Added as example app
Diffstat (limited to 'templates/show_paste.html')
-rw-r--r--templates/show_paste.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/show_paste.html b/templates/show_paste.html
new file mode 100644
index 0000000..7eeaa4b
--- /dev/null
+++ b/templates/show_paste.html
@@ -0,0 +1,35 @@
+{% extends "layout.html" %}
+{% block title %}Paste #{{ paste.id }}{% endblock %}
+{% block body %}
+ <h2>Paste #{{ paste.id }}</h2>
+ <dl>
+ {% if paste.user %}
+ <dt>Author
+ <dd>{{ paste.user.display_name }}
+ {% endif %}
+ <dt>Date
+ <dd>{{ paste.pub_date.strftime('%Y-%m-%d @ %H:%M') }}
+ <dt>Actions
+ <dd>
+ <a href="{{ url_for('new_paste', reply_to=paste.id) }}">Reply</a>
+ {%- if g.user and paste.user == g.user -%}
+ , <a href="{{ url_for('delete_paste', paste_id=paste.id) }}">Delete</a>
+ {% endif %}
+ {% if paste.parent_id %}
+ <dt>In reply to
+ <dd><a href="{{ url_for('show_paste', paste_id=paste.parent_id) }}">#{{ paste.parent_id }}</a>
+ {% endif %}
+ {% if paste.children %}
+ <dt>Replies
+ <dd>
+ {% for child in paste.children -%}
+ {%- if not loop.first %},{% endif %}
+ <a href="{{ url_for('show_paste', paste_id=child.id) }}">#{{ child.id }}</a>
+ {%- endfor %}
+ {% endif %}
+ </dl>
+ <div class=code><pre>{{ paste.code }}</pre></div>
+ <script type=text/javascript>
+ pastebin.subscribePaste({{ paste.id }});
+ </script>
+{% endblock %}
bgstack15