changeset 54:d958e59d6fc6

For issue #9, remove admin customization. Used the nav-global block to add a link to the send mail to the mailing list.
author Brian Neal <bgneal@gmail.com>
date Sat, 31 Mar 2012 15:39:53 -0500
parents 9b40a8d300a4
children 0176eca97d1d
files madeira/templates/admin/base_site.html madeira/templates/admin/index.html
diffstat 2 files changed, 2 insertions(+), 130 deletions(-) [+]
line wrap: on
line diff
--- a/madeira/templates/admin/base_site.html	Sat Mar 31 14:52:07 2012 -0500
+++ b/madeira/templates/admin/base_site.html	Sat Mar 31 15:39:53 2012 -0500
@@ -1,4 +1,5 @@
 {% extends "admin/base.html" %}
+{% load url from future %}
 {% load i18n %}
 
 {% block title %}{{ title }} | {% trans 'Madeira site admin' %}{% endblock %}
@@ -10,4 +11,4 @@
 <h1 id="site-name">{% trans 'Madeira site administration' %}</h1>
 {% endblock %}
 
-{% block nav-global %}{% endblock %}
+{% block nav-global %}<a href="{% url 'admin:email_list-admin_mail' %}" style="margin-left: 1.5em">Send mail to the mailing list</a>{% endblock %}
--- a/madeira/templates/admin/index.html	Sat Mar 31 14:52:07 2012 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,129 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n %}
-
-{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
-
-{% block coltype %}colMS{% endblock %}
-{% block bodyclass %}dashboard{% endblock %}
-{% block breadcrumbs %}{% endblock %}
-{% block content %}
-<div id="content-main">
-
-{% if app_list %}
-    <div class="module">
-       <table summary="Madeira custom views">
-          <caption>Madeira Quick Links</caption>
-    <!--   ==============================================================================  -->
-    {% if perms.band.add_news or perms.band.change_news %}
-    <tr>
-        <th>{% if perms.band.change_news %}<a href="band/news/">{% endif %}News Items{% if perms.band.change_news %}</a>{% endif %}</th>
-        <td class="x50">{% if perms.band.add_news %}<a href="band/news/add/" class="addlink">{% endif %}Add{% if perms.band.add_news %}</a>{% endif %}</td>
-        <td class="x75">{% if perms.band.change_news %}<a href="band/news/" class="changelink">{% endif %}Change{% if perms.band.change_news %}</a>{% endif %}</td>
-    </tr>
-    {% endif %}
-    {% if perms.band.add_member or perms.band.change_member %}
-    <tr>
-        <th>{% if perms.band.change_member %}<a href="band/member/">{% endif %}Biography &amp; Gear{% if perms.band.change_member %}</a>{% endif %}</th>
-        <td class="x50">{% if perms.band.add_member %}<a href="band/member/add/" class="addlink">{% endif %}Add{% if perms.band.add_member %}</a>{% endif %}</td>
-        <td class="x75">{% if perms.band.change_member %}<a href="band/member/" class="changelink">{% endif %}Change{% if perms.band.change_member %}</a>{% endif %}</td>
-    </tr>
-    {% endif %}
-    {% if perms.band.add_gig or perms.band.change_gig %}
-    <tr>
-        <th>{% if perms.band.change_gig %}<a href="band/gig/">{% endif %}Gigs{% if perms.band.change_gig %}</a>{% endif %}</th>
-        <td class="x50">{% if perms.band.add_gig %}<a href="band/gig/add/" class="addlink">{% endif %}Add{% if perms.band.add_gig %}</a>{% endif %}</td>
-        <td class="x75">{% if perms.band.change_gig %}<a href="band/gig/" class="changelink">{% endif %}Change{% if perms.band.change_gig %}</a>{% endif %}</td>
-    </tr>
-    {% endif %}
-    {% if perms.band.add_article or perms.band.change_article %}
-    <tr>
-        <th>{% if perms.band.change_article %}<a href="band/article/">{% endif %}Press Items{% if perms.band.change_article %}</a>{% endif %}</th>
-        <td class="x50">{% if perms.band.add_article %}<a href="band/article/add/" class="addlink">{% endif %}Add{% if perms.band.add_article %}</a>{% endif %}</td>
-        <td class="x75">{% if perms.band.change_article %}<a href="band/article/" class="changelink">{% endif %}Change{% if perms.band.change_article %}</a>{% endif %}</td>
-    </tr>
-    {% endif %}
-    {% if perms.band.add_mp3_set or perms.band.change_mp3_set %}
-    <tr>
-        <th>{% if perms.band.change_mp3_set %}<a href="band/mp3_set/">{% endif %}Songs{% if perms.band.change_mp3_set %}</a>{% endif %}</th>
-        <td class="x50">{% if perms.band.add_mp3_set %}<a href="band/mp3_set/add/" class="addlink">{% endif %}Add{% if perms.band.add_mp3_set %}</a>{% endif %}</td>
-        <td class="x75">{% if perms.band.change_mp3_set %}<a href="band/mp3_set/" class="changelink">{% endif %}Change{% if perms.band.change_mp3_set %}</a>{% endif %}</td>
-    </tr>
-    {% endif %}
-    {% if perms.band.add_video_set or perms.band.change_video_set %}
-    <tr>
-        <th>{% if perms.band.change_video_set %}<a href="band/video_set/">{% endif %}Videos{% if perms.band.change_video_set %}</a>{% endif %}</th>
-        <td class="x50">{% if perms.band.add_video_set %}<a href="band/video_set/add/" class="addlink">{% endif %}Add{% if perms.band.add_video_set %}</a>{% endif %}</td>
-        <td class="x75">{% if perms.band.change_video_set %}<a href="band/video_set/" class="changelink">{% endif %}Change{% if perms.band.change_video_set %}</a>{% endif %}</td>
-    </tr>
-    {% endif %}
-    {% if perms.band.add_merchandise or perms.band.change_merchandise %}
-    <tr>
-        <th>{% if perms.band.change_merchandise %}<a href="band/merchandise/">{% endif %}Merchandise{% if perms.band.change_merchandise %}</a>{% endif %}</th>
-        <td class="x50">{% if perms.band.add_merchandise %}<a href="band/merchandise/add/" class="addlink">{% endif %}Add{% if perms.band.add_merchandise %}</a>{% endif %}</td>
-        <td class="x75">{% if perms.band.change_merchandise %}<a href="band/merchandise/" class="changelink">{% endif %}Change{% if perms.band.change_merchandise %}</a>{% endif %}</td>
-    </tr>
-    {% endif %}
-
-
-    <!--   ==============================================================================  -->
-          <tr><th scope="row"><a href="{% url band.admin_views.email %}">Send Email to Mailing List</a></th>
-             <td>&nbsp;</td>
-             <td>&nbsp;</td>
-          </tr>
-       </table>
-    </div>
-
-
-    {% for app in app_list %}
-        <div class="module">
-        <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}">
-        <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption>
-        {% for model in app.models %}
-            <tr>
-            {% if model.perms.change %}
-                <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
-            {% else %}
-                <th scope="row">{{ model.name }}</th>
-            {% endif %}
-
-            {% if model.perms.add %}
-                <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
-            {% else %}
-                <td>&nbsp;</td>
-            {% endif %}
-
-            {% if model.perms.change %}
-                <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
-            {% else %}
-                <td>&nbsp;</td>
-            {% endif %}
-            </tr>
-        {% endfor %}
-        </table>
-        </div>
-    {% endfor %}
-{% else %}
-    <p>{% trans "You don't have permission to edit anything." %}</p>
-{% endif %}
-</div>
-{% endblock %}
-
-{% block sidebar %}
-<div id="content-related">
-    <div class="module" id="recent-actions-module">
-        <h2>{% trans 'Recent Actions' %}</h2>
-        <h3>{% trans 'My Actions' %}</h3>
-            {% load log %}
-            {% get_admin_log 10 as admin_log for_user user %}
-            {% if not admin_log %}
-            <p>{% trans 'None available' %}</p>
-            {% else %}
-            <ul class="actionlist">
-            {% for entry in admin_log %}
-            <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr|escape }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li>
-            {% endfor %}
-            </ul>
-            {% endif %}
-    </div>
-</div>
-{% endblock %}