Mercurial > public > sg101
comparison comments/views.py @ 1021:68c3343f3318
Perform image_check on gcalendar description.
Also add image hotlink/upload forms to gcalendar add event page.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 08 Dec 2015 21:39:19 -0600 |
parents | a828e80223d2 |
children | e932f2ecd4a7 |
comparison
equal
deleted
inserted
replaced
1020:a052798c146c | 1021:68c3343f3318 |
---|---|
25 | 25 |
26 PREVIEW_UNAVAILABLE = """ | 26 PREVIEW_UNAVAILABLE = """ |
27 <p><strong>Error</strong>: {}</p> | 27 <p><strong>Error</strong>: {}</p> |
28 <p>Sorry, preview is unavailable.</p> | 28 <p>Sorry, preview is unavailable.</p> |
29 <p>There is an image in your post which failed our image check. We can only | 29 <p>There is an image in your post which failed our image check. We can only |
30 accept images from a small number of sources for security reasons. You may use | 30 accept images from a small number of sources for security reasons.</p> |
31 the forms below this box to safely hot-link to images hosted elsewhere on the | 31 <p>If there are forms below this post box, you may use them to safely hot-link |
32 Internet or upload from your computer or device.</p> | 32 to images hosted elsewhere on the Internet or upload from your computer or |
33 device.</p> | |
34 <p>If there are no image forms on this page, you can upload a photo from your | |
35 computer or device from your user profile. Copy the image code you receive | |
36 into the post box here.</p> | |
33 """ | 37 """ |
34 | 38 |
35 | 39 |
36 @login_required | 40 @login_required |
37 @require_POST | 41 @require_POST |