|
0
|
1 |
{% extends "admin/base_site.html" %} |
|
|
2 |
{% load i18n %} |
|
|
3 |
|
|
|
4 |
{% block breadcrumbs %} |
|
|
5 |
<div class="breadcrumbs"> |
|
|
6 |
<a href="../../../../">{% trans 'Home' %}</a> › |
|
|
7 |
<a href="../../../">{{ app_label|capfirst }}</a> › |
|
|
8 |
<a href="../../">{{ module_name }}</a> › |
|
|
9 |
<a href="../">{{ object|truncatewords:"18" }}</a> › |
|
|
10 |
{% trans '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">{% trans 'Date/time' %}</th> |
|
|
23 |
<th scope="col">{% trans 'User' %}</th> |
|
|
24 |
<th scope="col">{% trans 'Action' %}</th> |
|
|
25 |
</tr> |
|
|
26 |
</thead> |
|
|
27 |
<tbody> |
|
|
28 |
{% for action in action_list %} |
|
|
29 |
<tr> |
|
29
|
30 |
<th scope="row">{{ action.action_time|date:"DATETIME_FORMAT" }}</th> |
|
0
|
31 |
<td>{{ action.user.username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}</td> |
|
|
32 |
<td>{{ action.change_message }}</td> |
|
|
33 |
</tr> |
|
|
34 |
{% endfor %} |
|
|
35 |
</tbody> |
|
|
36 |
</table> |
|
|
37 |
{% else %} |
|
|
38 |
<p>{% trans "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 %} |