django-template.webmode (3219B)
1 <!-- -*- engine:django -*- --> 2 {% extends "admin/base_site.html" %} 3 {% load i18n static %} 4 5 {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}">{% endblock %} 6 7 {% block coltype %}colMS{% endblock %} 8 9 {% block bodyclass %}{{ block.super }} dashboard{% endblock %} 10 11 {% block breadcrumbs %}{% endblock %} 12 13 {% block content %} 14 <div id="content-main"> 15 16 {% if app_list %} 17 {% for app in app_list %} 18 <div class="app-{{ app.app_label }} module"> 19 <table> 20 <caption> 21 <a href="{{ app.app_url }}" class="section" title="{% blocktrans with name=app.name %}Models in the {{ name }} application{% endblocktrans %}">{{ app.name }}</a> 22 </caption> 23 {% for model in app.models %} 24 <tr class="model-{{ model.object_name|lower }}"> 25 {% if model.admin_url %} 26 <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th> 27 {% else %} 28 <th scope="row">{{ model.name }}</th> 29 {% endif %} 30 31 {% if model.add_url %} 32 <td><a href="{{ model.add_url }}" class="addlink">{% trans 'Add' %}</a></td> 33 {% else %} 34 <td> </td> 35 {% endif %} 36 37 {% if model.admin_url %} 38 {% if model.view_only %} 39 <td><a href="{{ model.admin_url }}" class="viewlink">{% trans 'View' %}</a></td> 40 {% else %} 41 <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td> 42 {% endif %} 43 {% else %} 44 <td> </td> 45 {% endif %} 46 </tr> 47 {% endfor %} 48 </table> 49 </div> 50 {% endfor %} 51 {% else %} 52 <p>{% trans 'You don’t have permission to view or edit anything.' %}</p> 53 {% endif %} 54 </div> 55 {% endblock %} 56 57 {% block sidebar %} 58 <div id="content-related"> 59 <div class="module" id="recent-actions-module"> 60 <h2>{% trans 'Recent actions' %}</h2> 61 <h3>{% trans 'My actions' %}</h3> 62 {% load log %} 63 {% get_admin_log 10 as admin_log for_user user %} 64 {% if not admin_log %} 65 <p>{% trans 'None available' %}</p> 66 {% else %} 67 <ul class="actionlist"> 68 {% for entry in admin_log %} 69 <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}"> 70 {% if entry.is_deletion or not entry.get_admin_url %} 71 {{ entry.object_repr }} 72 {% else %} 73 <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a> 74 {% endif %} 75 <br> 76 {% if entry.content_type %} 77 <span class="mini quiet">{% filter capfirst %}{{ entry.content_type.name }}{% endfilter %}</span> 78 {% else %} 79 <span class="mini quiet">{% trans 'Unknown content' %}</span> 80 {% endif %} 81 </li> 82 {% endfor %} 83 </ul> 84 {% endif %} 85 </div> 86 </div> 87 {% endblock %}