# HG changeset patch # User Brian Neal # Date 1260086148 0 # Node ID 861f7d5f1b2355df92fd8b5dcfb2c97e78399c37 # Parent 91a01b8b5885f94a1ecc7ab0a53f55120022403c Rework r149 for #30. Got rid of the custom index. Put my dashboard in the nav-global block instead. diff -r 91a01b8b5885 -r 861f7d5f1b23 gpp/templates/admin/base_site.html --- a/gpp/templates/admin/base_site.html Mon Nov 30 03:20:24 2009 +0000 +++ b/gpp/templates/admin/base_site.html Sun Dec 06 07:55:48 2009 +0000 @@ -1,5 +1,21 @@ {% extends "admin/base.html" %} {% load i18n %} +{% load custom_admin_tags %} + +{% block extrastyle %} + +{% endblock %} {% block title %}{{ title }} | {% trans 'SG101 Site Admin' %}{% endblock %} @@ -7,4 +23,4 @@

{% trans 'SurfGuitar101.com Site Administration' %}

{% endblock %} -{% block nav-global %}{% endblock %} +{% block nav-global %}{% admin_dashboard %}{% endblock %} diff -r 91a01b8b5885 -r 861f7d5f1b23 gpp/templates/admin/custom_index.html --- a/gpp/templates/admin/custom_index.html Mon Nov 30 03:20:24 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -{% extends "admin/index.html" %} -{% load i18n %} -{% load custom_admin_tags %} -{% block content %} -
-{% admin_dashboard %} -{% if app_list %} - {% for app in app_list %} -
- - - {% for model in app.models %} - - {% if model.perms.change %} - - {% else %} - - {% endif %} - - {% if model.perms.add %} - - {% else %} - - {% endif %} - - {% if model.perms.change %} - - {% else %} - - {% endif %} - - {% endfor %} -
{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}
{{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
-
- {% endfor %} -{% else %} -

{% trans "You don't have permission to edit anything." %}

-{% endif %} -
-{% endblock %} diff -r 91a01b8b5885 -r 861f7d5f1b23 gpp/templates/core/admin_dashboard.html --- a/gpp/templates/core/admin_dashboard.html Mon Nov 30 03:20:24 2009 +0000 +++ b/gpp/templates/core/admin_dashboard.html Sun Dec 06 07:55:48 2009 +0000 @@ -1,33 +1,9 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Admin Dashboard
Flagged Posts{{ flagged_posts }}
Flagged Comments{{ flagged_comments }}
Flagged Profiles{{ flagged_profiles }}
Calendar Requests{{ event_requests }}
New Stories{{ new_stories }}
New Downloads{{ new_downloads }}
New Links{{ new_links }}
-
+ diff -r 91a01b8b5885 -r 861f7d5f1b23 gpp/urls.py --- a/gpp/urls.py Mon Nov 30 03:20:24 2009 +0000 +++ b/gpp/urls.py Sun Dec 06 07:55:48 2009 +0000 @@ -3,9 +3,7 @@ from django.contrib import admin from news.feeds import LatestNewsFeed -# Use the default admin site, but tell it to use a custom -# index template: -admin.site.index_template = 'admin/custom_index.html' + admin.autodiscover() feeds = {