Mercurial > public > madeira
diff mysite/templates/admin/index.html @ 1:0dcfcdf50c62
Initial import of Madeira project from the private repository.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 06 Apr 2009 03:10:59 +0000 |
parents | |
children | 25e00d1b99bf |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/templates/admin/index.html Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,129 @@ +{% 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 & 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 mysite.band.admin_views.email %}">Send Email to Mailing List</a></th> + <td> </td> + <td> </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> </td> + {% endif %} + + {% if model.perms.change %} + <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td> + {% else %} + <td> </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 %}