From f0a9e8a874d216deb73e87b8b08f73b6a00151ff Mon Sep 17 00:00:00 2001 From: sudan Date: Mon, 22 Feb 2016 17:20:20 +0800 Subject: add private paste --- templates/new_paste.html | 19 ++++++++++--------- templates/show_paste.html | 4 +++- 2 files changed, 13 insertions(+), 10 deletions(-) (limited to 'templates') 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 %} -

New Paste - {%- if parent %} - - Reply to #{{ parent.id }} - {%- endif %} -

-
-
-

-

+
+

New Paste + {%- if parent %} + - Reply to #{{ parent.id }} + {%- endif %} + Private +

+
+

+

{% 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 @@
{{ paste.pub_date.strftime('%Y-%m-%d @ %H:%M') }}
Actions
- Reply + {% if not paste.is_private %} + Reply + {% endif %} {%- if g.user and paste.user == g.user -%} , Delete {% endif %} -- cgit