comparison 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
comparison
equal deleted inserted replaced
0:df0370bfe3f0 1:0dcfcdf50c62
1 {% extends "admin/base_site.html" %}
2 {% load i18n %}
3
4 {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
5
6 {% block coltype %}colMS{% endblock %}
7 {% block bodyclass %}dashboard{% endblock %}
8 {% block breadcrumbs %}{% endblock %}
9 {% block content %}
10 <div id="content-main">
11
12 {% if app_list %}
13 <div class="module">
14 <table summary="Madeira custom views">
15 <caption>Madeira Quick Links</caption>
16 <!-- ============================================================================== -->
17 {% if perms.band.add_news or perms.band.change_news %}
18 <tr>
19 <th>{% if perms.band.change_news %}<a href="band/news/">{% endif %}News Items{% if perms.band.change_news %}</a>{% endif %}</th>
20 <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>
21 <td class="x75">{% if perms.band.change_news %}<a href="band/news/" class="changelink">{% endif %}Change{% if perms.band.change_news %}</a>{% endif %}</td>
22 </tr>
23 {% endif %}
24 {% if perms.band.add_member or perms.band.change_member %}
25 <tr>
26 <th>{% if perms.band.change_member %}<a href="band/member/">{% endif %}Biography &amp; Gear{% if perms.band.change_member %}</a>{% endif %}</th>
27 <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>
28 <td class="x75">{% if perms.band.change_member %}<a href="band/member/" class="changelink">{% endif %}Change{% if perms.band.change_member %}</a>{% endif %}</td>
29 </tr>
30 {% endif %}
31 {% if perms.band.add_gig or perms.band.change_gig %}
32 <tr>
33 <th>{% if perms.band.change_gig %}<a href="band/gig/">{% endif %}Gigs{% if perms.band.change_gig %}</a>{% endif %}</th>
34 <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>
35 <td class="x75">{% if perms.band.change_gig %}<a href="band/gig/" class="changelink">{% endif %}Change{% if perms.band.change_gig %}</a>{% endif %}</td>
36 </tr>
37 {% endif %}
38 {% if perms.band.add_article or perms.band.change_article %}
39 <tr>
40 <th>{% if perms.band.change_article %}<a href="band/article/">{% endif %}Press Items{% if perms.band.change_article %}</a>{% endif %}</th>
41 <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>
42 <td class="x75">{% if perms.band.change_article %}<a href="band/article/" class="changelink">{% endif %}Change{% if perms.band.change_article %}</a>{% endif %}</td>
43 </tr>
44 {% endif %}
45 {% if perms.band.add_mp3_set or perms.band.change_mp3_set %}
46 <tr>
47 <th>{% if perms.band.change_mp3_set %}<a href="band/mp3_set/">{% endif %}Songs{% if perms.band.change_mp3_set %}</a>{% endif %}</th>
48 <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>
49 <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>
50 </tr>
51 {% endif %}
52 {% if perms.band.add_video_set or perms.band.change_video_set %}
53 <tr>
54 <th>{% if perms.band.change_video_set %}<a href="band/video_set/">{% endif %}Videos{% if perms.band.change_video_set %}</a>{% endif %}</th>
55 <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>
56 <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>
57 </tr>
58 {% endif %}
59 {% if perms.band.add_merchandise or perms.band.change_merchandise %}
60 <tr>
61 <th>{% if perms.band.change_merchandise %}<a href="band/merchandise/">{% endif %}Merchandise{% if perms.band.change_merchandise %}</a>{% endif %}</th>
62 <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>
63 <td class="x75">{% if perms.band.change_merchandise %}<a href="band/merchandise/" class="changelink">{% endif %}Change{% if perms.band.change_merchandise %}</a>{% endif %}</td>
64 </tr>
65 {% endif %}
66
67
68 <!-- ============================================================================== -->
69 <tr><th scope="row"><a href="{% url mysite.band.admin_views.email %}">Send Email to Mailing List</a></th>
70 <td>&nbsp;</td>
71 <td>&nbsp;</td>
72 </tr>
73 </table>
74 </div>
75
76
77 {% for app in app_list %}
78 <div class="module">
79 <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}">
80 <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption>
81 {% for model in app.models %}
82 <tr>
83 {% if model.perms.change %}
84 <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
85 {% else %}
86 <th scope="row">{{ model.name }}</th>
87 {% endif %}
88
89 {% if model.perms.add %}
90 <td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td>
91 {% else %}
92 <td>&nbsp;</td>
93 {% endif %}
94
95 {% if model.perms.change %}
96 <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
97 {% else %}
98 <td>&nbsp;</td>
99 {% endif %}
100 </tr>
101 {% endfor %}
102 </table>
103 </div>
104 {% endfor %}
105 {% else %}
106 <p>{% trans "You don't have permission to edit anything." %}</p>
107 {% endif %}
108 </div>
109 {% endblock %}
110
111 {% block sidebar %}
112 <div id="content-related">
113 <div class="module" id="recent-actions-module">
114 <h2>{% trans 'Recent Actions' %}</h2>
115 <h3>{% trans 'My Actions' %}</h3>
116 {% load log %}
117 {% get_admin_log 10 as admin_log for_user user %}
118 {% if not admin_log %}
119 <p>{% trans 'None available' %}</p>
120 {% else %}
121 <ul class="actionlist">
122 {% for entry in admin_log %}
123 <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>
124 {% endfor %}
125 </ul>
126 {% endif %}
127 </div>
128 </div>
129 {% endblock %}