diff options
author | sudan <sudan@douban.com> | 2016-02-22 17:20:20 +0800 |
---|---|---|
committer | sudan <sudan@douban.com> | 2016-02-22 17:20:20 +0800 |
commit | f0a9e8a874d216deb73e87b8b08f73b6a00151ff (patch) | |
tree | c3f10d9746aac51bb7f784a5ee04f4ca6b065125 /templates/new_paste.html | |
parent | remove gunicorn (diff) | |
download | stackbin-f0a9e8a874d216deb73e87b8b08f73b6a00151ff.tar.gz stackbin-f0a9e8a874d216deb73e87b8b08f73b6a00151ff.tar.bz2 stackbin-f0a9e8a874d216deb73e87b8b08f73b6a00151ff.zip |
add private paste
Diffstat (limited to 'templates/new_paste.html')
-rw-r--r-- | templates/new_paste.html | 19 |
1 files changed, 10 insertions, 9 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 %} |