5
+<div class="breadcrumbs">
|
|
|
6
|
+<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
|
|
|
7
|
+› <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ opts.app_config.verbose_name }}</a>
|
|
|
8
|
+› <a href="{% url opts|admin_urlname:'changelist' %}">{{ module_name }}</a>
|
|
|
9
|
+› <a href="{% url opts|admin_urlname:'change' object.pk|admin_urlquote %}">{{ object|truncatewords:"18" }}</a>
|
|
|
10
|
+› {% translate 'History' %}
|
|
|
11
|
+</div>
|
|
|
12
|
+{% endblock %}
|
|
|
13
|
+
|
|
|
14
|
+{% block content %}
|
|
|
15
|
+<div id="content-main">
|
|
|
16
|
+<div class="module">
|
|
|
17
|
+
|
|
|
18
|
+{% if action_list %}
|
|
|
19
|
+ <table id="change-history">
|
|
|
20
|
+ <thead>
|
|
|
21
|
+ <tr>
|
|
|
22
|
+ <th scope="col">{% translate 'Date/time' %}</th>
|
|
|
23
|
+ <th scope="col">{% translate 'User' %}</th>
|
|
|
24
|
+ <th scope="col">{% translate 'Action' %}</th>
|
|
|
25
|
+ </tr>
|
|
|
26
|
+ </thead>
|
|
|
27
|
+ <tbody>
|
|
|
28
|
+ {% for action in action_list %}
|
|
|
29
|
+ <tr>
|
|
|
30
|
+ <th scope="row">{{ action.action_time|date:"DATETIME_FORMAT" }}</th>
|
|
|
31
|
+ <td>{{ action.user.get_username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}</td>
|
|
|
32
|
+ <td>{{ action.get_change_message }}</td>
|
|
|
33
|
+ </tr>
|
|
|
34
|
+ {% endfor %}
|
|
|
35
|
+ </tbody>
|
|
|
36
|
+ </table>
|
|
|
37
|
+{% else %}
|
|
|
38
|
+ <p>{% translate 'This object doesn’t have a change history. It probably wasn’t added via this admin site.' %}</p>
|
|
|
39
|
+{% endif %}
|
|
|
40
|
+</div>
|
|
|
41
|
+</div>
|
|
|
42
|
+{% endblock %}
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+{% load admin_list %}
|
|
|
2
|
+{% load i18n %}
|
|
|
3
|
+<p class="paginator">
|
|
|
4
|
+{% if pagination_required %}
|
|
|
5
|
+{% for i in page_range %}
|
|
|
6
|
+ {% paginator_number cl i %}
|
|
|
7
|
+{% endfor %}
|
|
|
8
|
+{% endif %}
|
|
|
9
|
+{{ cl.result_count }} {% if cl.result_count == 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endif %}
|
|
|
10
|
+{% if show_all_url %}<a href="{{ show_all_url }}" class="showall">{% translate 'Show all' %}</a>{% endif %}
|
|
|
11
|
+{% if cl.formset and cl.result_count %}<input type="submit" name="_save" class="default" value="{% translate 'Save' %}">{% endif %}
|
|
|
12
|
+</p>
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+{% load i18n static %}<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+ <head><title>{% translate 'Popup closing…' %}</title></head>
|
|
|
4
|
+ <body>
|
|
|
5
|
+ <script id="django-admin-popup-response-constants"
|
|
|
6
|
+ src="{% static "admin/js/popup_response.js" %}"
|
|
|
7
|
+ data-popup-response="{{ popup_response_data }}">
|
|
|
8
|
+ </script>
|
|
|
9
|
+ </body>
|
|
|
10
|
+</html>
|