aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorsudan <sudan@douban.com>2016-01-21 10:13:35 +0800
committersudan <sudan@douban.com>2016-01-21 11:16:11 +0800
commit1123a187c012df06381b415798db4b2c18a4016d (patch)
tree7de10187ec169f6beaf5a6d9c695ce4920b72453 /templates
parentmerge from jiawei (diff)
downloadstackbin-1123a187c012df06381b415798db4b2c18a4016d.tar.gz
stackbin-1123a187c012df06381b415798db4b2c18a4016d.tar.bz2
stackbin-1123a187c012df06381b415798db4b2c18a4016d.zip
style
Diffstat (limited to 'templates')
-rw-r--r--templates/layout.html1
-rw-r--r--templates/new_paste.html6
2 files changed, 5 insertions, 2 deletions
diff --git a/templates/layout.html b/templates/layout.html
index 64298f2..106ca8c 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -15,7 +15,6 @@ href="{{ url_for('static', filename='small.css') }}" />
</script>
#}
<div class=page>
- <h1>Flask Pastebin</h1>
<ul class=nav>
<li><a href="{{ url_for('new_paste') }}">New Paste</a>
{#
diff --git a/templates/new_paste.html b/templates/new_paste.html
index 658acfb..c7c623d 100644
--- a/templates/new_paste.html
+++ b/templates/new_paste.html
@@ -1,7 +1,11 @@
{% extends "layout.html" %}
{% block title %}New Paste{% endblock %}
{% block body %}
- <h2>New Paste</h2>
+<h2>New Paste
+ {%- if parent %}
+ - Reply to #{{ parent.id }}
+ {%- endif %}
+</h2>
<form action="" method=post>
<div class=code><textarea name=code cols=60 rows=12>{{ parent.code }}</textarea></div>
<p><input type=submit value="New Paste">
bgstack15