annotate mysite/templates/admin/index.html @ 9:dac690ab98b2

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