0
|
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 |
|
|
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 app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}"> |
|
19 |
<caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption> |
|
20 |
{% for model in app.models %} |
|
21 |
<tr> |
|
22 |
{% if model.perms.change %} |
|
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.perms.add %} |
|
29 |
<td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td> |
|
30 |
{% else %} |
|
31 |
<td> </td> |
|
32 |
{% endif %} |
|
33 |
|
|
34 |
{% if model.perms.change %} |
|
35 |
<td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td> |
|
36 |
{% else %} |
|
37 |
<td> </td> |
|
38 |
{% endif %} |
|
39 |
</tr> |
|
40 |
{% endfor %} |
|
41 |
</table> |
|
42 |
</div> |
|
43 |
{% endfor %} |
|
44 |
<div class="module"> |
|
45 |
<table summary="Import"> |
|
46 |
<caption>Import</caption> |
|
47 |
<tr> |
|
48 |
<th> |
|
49 |
<a href="{% url ldt.ldt.views.importFile %}">Import an ldt</a> |
|
50 |
</th> |
|
51 |
<td> |
|
52 |
</td> |
|
53 |
</tr> |
|
54 |
<tr> |
|
55 |
<th> |
|
56 |
<a href="{% url ldt.ldt.views.reindex %}">Reindex</a> |
|
57 |
</th> |
|
58 |
<td> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
</table> |
|
62 |
</div> |
|
63 |
{% else %} |
|
64 |
<p>{% trans "You don't have permission to edit anything." %}</p> |
|
65 |
{% endif %} |
|
66 |
</div> |
|
67 |
{% endblock %} |
|
68 |
|
|
69 |
{% block sidebar %} |
|
70 |
<div id="content-related"> |
|
71 |
<div class="module" id="recent-actions-module"> |
|
72 |
<h2>{% trans 'Recent Actions' %}</h2> |
|
73 |
<h3>{% trans 'My Actions' %}</h3> |
|
74 |
{% load log %} |
|
75 |
{% get_admin_log 10 as admin_log for_user user %} |
|
76 |
{% if not admin_log %} |
|
77 |
<p>{% trans 'None available' %}</p> |
|
78 |
{% else %} |
|
79 |
<ul class="actionlist"> |
|
80 |
{% for entry in admin_log %} |
|
81 |
<li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}"> |
|
82 |
{% if entry.is_deletion %} |
|
83 |
{{ entry.object_repr }} |
|
84 |
{% else %} |
|
85 |
<a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a> |
|
86 |
{% endif %} |
|
87 |
<br/> |
|
88 |
{% if entry.content_type %} |
|
89 |
<span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span> |
|
90 |
{% else %} |
|
91 |
<span class="mini quiet">{% trans 'Unknown content' %}</span> |
|
92 |
{% endif %} |
|
93 |
</li> |
|
94 |
{% endfor %} |
|
95 |
</ul> |
|
96 |
{% endif %} |
|
97 |
</div> |
|
98 |
</div> |
|
99 |
{% endblock %} |