root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / admin / object_history.html @ 1a305335
History | View | Annotate | Download (1.43 KB)
1 |
{% extends "admin/base_site.html" %} |
---|---|
2 |
{% load i18n %} |
3 |
{% load url from future %} |
4 |
{% load admin_urls %} |
5 |
|
6 |
{% block breadcrumbs %} |
7 |
<div class="breadcrumbs"> |
8 |
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> |
9 |
› <a href="{% url 'admin:app_list' app_label=app_label %}">{{ app_label|capfirst|escape }}</a> |
10 |
› <a href="{% url opts|admin_urlname:'changelist' %}">{{ module_name }}</a> |
11 |
› <a href="{% url opts|admin_urlname:'changelist' %}{{ object.pk }}">{{ object|truncatewords:"18" }}</a> |
12 |
› {% trans 'History' %}
|
13 |
</div>
|
14 |
{% endblock %} |
15 |
|
16 |
{% block content %} |
17 |
<div id="content-main"> |
18 |
<div class="module"> |
19 |
|
20 |
{% if action_list %} |
21 |
<table id="change-history"> |
22 |
<thead>
|
23 |
<tr>
|
24 |
<th scope="col">{% trans 'Date/time' %}</th> |
25 |
<th scope="col">{% trans 'User' %}</th> |
26 |
<th scope="col">{% trans 'Action' %}</th> |
27 |
</tr>
|
28 |
</thead>
|
29 |
<tbody>
|
30 |
{% for action in action_list %} |
31 |
<tr>
|
32 |
<th scope="row">{{ action.action_time|date:"DATETIME_FORMAT" }}</th> |
33 |
<td>{{ action.user.username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}</td> |
34 |
<td>{{ action.change_message }}</td> |
35 |
</tr>
|
36 |
{% endfor %} |
37 |
</tbody>
|
38 |
</table>
|
39 |
{% else %} |
40 |
<p>{% trans "This object doesn't have a change history. It probably wasn't added via this admin site." %}</p> |
41 |
{% endif %} |
42 |
</div>
|
43 |
</div>
|
44 |
{% endblock %} |