aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/new_paste.html19
-rw-r--r--templates/show_paste.html4
2 files changed, 13 insertions, 10 deletions
diff --git a/templates/new_paste.html b/templates/new_paste.html
index c7c623d..5f1760a 100644
--- a/templates/new_paste.html
+++ b/templates/new_paste.html
@@ -1,13 +1,14 @@
{% extends "layout.html" %}
{% block title %}New Paste{% endblock %}
{% block body %}
-<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">
- </form>
+<form action="" method=post>
+ <h2>New Paste
+ {%- if parent %}
+ - Reply to #{{ parent.id }}
+ {%- endif %}
+ <span class="chk-private"><input name="is_private" type="checkbox"/>Private</span>
+ </h2>
+ <div class=code><textarea name=code cols=60 rows=12>{{ parent.code }}</textarea></div>
+ <p><input type=submit value="New Paste">
+</form>
{% endblock %}
diff --git a/templates/show_paste.html b/templates/show_paste.html
index 89ad18e..9628402 100644
--- a/templates/show_paste.html
+++ b/templates/show_paste.html
@@ -11,7 +11,9 @@
<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 not paste.is_private %}
+ <a href="{{ url_for('new_paste', reply_to=paste.id) }}">Reply</a>
+ {% endif %}
{%- if g.user and paste.user == g.user -%}
, <a href="{{ url_for('delete_paste', paste_id=paste.id) }}">Delete</a>
{% endif %}
bgstack15