Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
144:49b713bca29d | 145:71cb4208dc98 |
---|---|
12 float: left; | 12 float: left; |
13 list-style: square inside none; | 13 list-style: square inside none; |
14 margin-right: 10px; | 14 margin-right: 10px; |
15 margin-bottom: 4px; | 15 margin-bottom: 4px; |
16 } | 16 } |
17 #dashboard-list .alert { | |
18 color: #f55; | |
19 font-weight: bold; | |
20 } | |
17 </style> | 21 </style> |
18 {% endblock %} | 22 {% endblock %} |
19 | 23 |
20 {% block title %}{{ title }} | {% trans 'SG101 Site Admin' %}{% endblock %} | 24 {% block title %}{{ title }} | {% trans 'SG101 Site Admin' %}{% endblock %} |
21 | 25 |
22 {% block branding %} | 26 {% block branding %} |
23 <h1 id="site-name">{% trans 'SurfGuitar101.com Site Administration' %}</h1> | 27 <h1 id="site-name">{% trans 'SurfGuitar101.com Site Administration' %}</h1> |
24 {% endblock %} | 28 {% endblock %} |
25 | 29 |
26 {% block nav-global %}{% admin_dashboard %}{% endblock %} | 30 {% block nav-global %}{% admin_dashboard user %}{% endblock %} |