PageRenderTime 205ms CodeModel.GetById 203ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/django/contrib/admin/templates/admin/object_history.html

https://code.google.com/p/mango-py/
HTML | 42 lines | 39 code | 3 blank | 0 comment | 0 complexity | d9591bc989de9be5c0bd979c72c9e8fb MD5 | raw file
 1{% extends "admin/base_site.html" %}
 2{% load i18n %}
 3
 4{% block breadcrumbs %}
 5<div class="breadcrumbs">
 6    <a href="../../../../">{% trans 'Home' %}</a> &rsaquo; 
 7    <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo; 
 8    <a href="../../">{{ module_name }}</a> &rsaquo; 
 9    <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo; 
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>
30            <th scope="row">{{ action.action_time|date:"DATETIME_FORMAT" }}</th>
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 %}