/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. {% block breadcrumbs %}
  4. <div class="breadcrumbs">
  5. <a href="../../../../">{% trans 'Home' %}</a> &rsaquo;
  6. <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo;
  7. <a href="../../">{{ module_name }}</a> &rsaquo;
  8. <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
  9. {% trans 'History' %}
  10. </div>
  11. {% endblock %}
  12. {% block content %}
  13. <div id="content-main">
  14. <div class="module">
  15. {% if action_list %}
  16. <table id="change-history">
  17. <thead>
  18. <tr>
  19. <th scope="col">{% trans 'Date/time' %}</th>
  20. <th scope="col">{% trans 'User' %}</th>
  21. <th scope="col">{% trans 'Action' %}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {% for action in action_list %}
  26. <tr>
  27. <th scope="row">{{ action.action_time|date:"DATETIME_FORMAT" }}</th>
  28. <td>{{ action.user.username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}</td>
  29. <td>{{ action.change_message }}</td>
  30. </tr>
  31. {% endfor %}
  32. </tbody>
  33. </table>
  34. {% else %}
  35. <p>{% trans "This object doesn't have a change history. It probably wasn't added via this admin site." %}</p>
  36. {% endif %}
  37. </div>
  38. </div>
  39. {% endblock %}