annotate gpp/templates/core/admin_dashboard.html @ 265:1ba2c6bf6eb7

Closing #98. Animated GIFs were losing their transparency and animated properties when saved as avatars. Reworked the avatar save process to only run the avatar through PIL if it is too big. This preserves the original uploaded file if it is within the desired size settings. This may still mangle big animated gifs. If this becomes a problem, then maybe look into calling the PIL Image.resize() method directly. Moved the PIL image specific functions from bio.forms to a new module: core.image for better reusability in the future.
author Brian Neal <bgneal@gmail.com>
date Fri, 24 Sep 2010 02:12:09 +0000
parents b4305e18d3af
children
rev   line source
bgneal@145 1 {% if user.is_staff %}
bgneal@165 2 {% if flagged_posts or flagged_comments or flagged_profiles or event_requests or new_stories or new_downloads or new_links or flagged_shouts or broken_links %}
bgneal@141 3 <ul id="dashboard-list">
bgneal@146 4 {% if flagged_posts %}
bgneal@146 5 <li><a href="/admin/forums/flaggedpost/">Posts</a>: {{ flagged_posts }}</li>
bgneal@146 6 {% endif %}
bgneal@146 7 {% if flagged_comments %}
bgneal@146 8 <li><a href="/admin/comments/commentflag/">Comments</a>: {{ flagged_comments }}</li>
bgneal@146 9 {% endif %}
bgneal@151 10 {% if flagged_shouts %}
bgneal@151 11 <li><a href="/admin/shoutbox/shoutflag/">Shouts</a>: {{ flagged_shouts }}</li>
bgneal@151 12 {% endif %}
bgneal@146 13 {% if flagged_profiles %}
bgneal@146 14 <li><a href="/admin/bio/userprofileflag/">Profiles</a>: {{ flagged_profiles }}</li>
bgneal@146 15 {% endif %}
bgneal@146 16 {% if event_requests %}
bgneal@146 17 <li><a href="/admin/gcalendar/event/">Calendar</a>: {{ event_requests }}</li>
bgneal@146 18 {% endif %}
bgneal@146 19 {% if new_stories %}
bgneal@146 20 <li><a href="/admin/news/pendingstory/">News</a>: {{ new_stories }}</li>
bgneal@146 21 {% endif %}
bgneal@146 22 {% if new_downloads %}
bgneal@204 23 <li><a href="/admin/downloads/pendingdownload/">Downloads</a>: {{ new_downloads }}</li>
bgneal@146 24 {% endif %}
bgneal@146 25 {% if new_links %}
bgneal@204 26 <li><a href="/admin/weblinks/pendinglink/">New Links</a>: {{ new_links }}</li>
bgneal@165 27 {% endif %}
bgneal@165 28 {% if broken_links %}
bgneal@165 29 <li><a href="/admin/weblinks/flaggedlink/">Broken Links</a>: {{ broken_links }}</li>
bgneal@146 30 {% endif %}
bgneal@141 31 </ul>
bgneal@145 32 {% endif %}
bgneal@146 33 {% endif %}