# HG changeset patch # User Brian Neal # Date 1260399485 0 # Node ID 023132c9002186524746a46e24c9c9ba564c0787 # Parent 71cb4208dc98ac1517dba58243c2d35c58e7de80 Another tweak for #30; only show the admin dashboard items if they are non-zero. diff -r 71cb4208dc98 -r 023132c90021 gpp/templates/admin/base_site.html --- a/gpp/templates/admin/base_site.html Wed Dec 09 00:03:10 2009 +0000 +++ b/gpp/templates/admin/base_site.html Wed Dec 09 22:58:05 2009 +0000 @@ -14,10 +14,6 @@ margin-right: 10px; margin-bottom: 4px; } - #dashboard-list .alert { - color: #f55; - font-weight: bold; - } {% endblock %} diff -r 71cb4208dc98 -r 023132c90021 gpp/templates/core/admin_dashboard.html --- a/gpp/templates/core/admin_dashboard.html Wed Dec 09 00:03:10 2009 +0000 +++ b/gpp/templates/core/admin_dashboard.html Wed Dec 09 22:58:05 2009 +0000 @@ -1,18 +1,27 @@ {% if user.is_staff %} +{% if flagged_posts or flagged_comments or flagged_profiles or event_requests or new_stories or new_downloads or new_links %} {% endif %} +{% endif %}