Mercurial > public > sg101
annotate 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 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends "admin/base.html" %} |
gremmie@1 | 2 {% load i18n %} |
bgneal@141 | 3 {% load custom_admin_tags %} |
bgneal@141 | 4 |
bgneal@141 | 5 {% block extrastyle %} |
bgneal@141 | 6 <style type="text/css"> |
bgneal@141 | 7 #dashboard-list { |
bgneal@141 | 8 margin-left: 10px; |
bgneal@141 | 9 padding: 0; |
bgneal@141 | 10 } |
bgneal@141 | 11 #dashboard-list li { |
bgneal@141 | 12 float: left; |
bgneal@141 | 13 list-style: square inside none; |
bgneal@141 | 14 margin-right: 10px; |
bgneal@141 | 15 margin-bottom: 4px; |
bgneal@141 | 16 } |
bgneal@145 | 17 #dashboard-list .alert { |
bgneal@145 | 18 color: #f55; |
bgneal@145 | 19 font-weight: bold; |
bgneal@145 | 20 } |
bgneal@141 | 21 </style> |
bgneal@141 | 22 {% endblock %} |
gremmie@1 | 23 |
bgneal@139 | 24 {% block title %}{{ title }} | {% trans 'SG101 Site Admin' %}{% endblock %} |
gremmie@1 | 25 |
gremmie@1 | 26 {% block branding %} |
bgneal@139 | 27 <h1 id="site-name">{% trans 'SurfGuitar101.com Site Administration' %}</h1> |
gremmie@1 | 28 {% endblock %} |
gremmie@1 | 29 |
bgneal@145 | 30 {% block nav-global %}{% admin_dashboard user %}{% endblock %} |