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