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/show_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/show_paste.html')
-rw-r--r-- | templates/show_paste.html | 4 |
1 files changed, 3 insertions, 1 deletions
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 %} |