diff gpp/templates/admin/base_site.html @ 145:71cb4208dc98

Tweak to #30, admin dashboard. Because of a bug in Django (9568), my dashboard appears on the login page. To get around this, pass in the user to the templatetag, so it can do a 'if user.is_staff' check. Also tweaked the HTML and CSS to show non-zero pending items in red. Shortened the pending item titles for readability.
author Brian Neal <bgneal@gmail.com>
date Wed, 09 Dec 2009 00:03:10 +0000
parents 861f7d5f1b23
children 023132c90021
line wrap: on
line diff
--- a/gpp/templates/admin/base_site.html	Sun Dec 06 21:44:22 2009 +0000
+++ b/gpp/templates/admin/base_site.html	Wed Dec 09 00:03:10 2009 +0000
@@ -14,6 +14,10 @@
       margin-right: 10px;
       margin-bottom: 4px;
    }
+   #dashboard-list .alert {
+      color: #f55;
+      font-weight: bold;
+   }
 </style>
 {% endblock %}
 
@@ -23,4 +27,4 @@
 <h1 id="site-name">{% trans 'SurfGuitar101.com Site Administration' %}</h1>
 {% endblock %}
 
-{% block nav-global %}{% admin_dashboard %}{% endblock %}
+{% block nav-global %}{% admin_dashboard user %}{% endblock %}