{% extends "admin/change_form.html" %}

{# Copyright 2010-2012 Canonical Ltd.  This software is licensed under #}
{# the GNU Lesser General Public License version 3 (see the file LICENSE). #}

{% load i18n %}

{% block title %}View audit log| {% trans 'Django site admin' %}{% endblock %}
{% block content_title %}<h1>View audit log</h1>{% endblock %}

{% block content %}
<table>
  <tbody>
    <tr>
      <th>User</th>
      <td>{{ original.user }}</td>
    </tr>
    <tr>
      <th>Model</th>
      <td>{{ original.model }}</td>
    </tr>
    <tr>
      <th>Representation:</th>
      <td>{{ original.representation }}</td>
    </tr>
    <tr>
      <th>Change</th>
      <td>{{ original.change }}</td>
    </tr>
    <tr>
      <th>Change date</th>
      <td>{{ original.created_at }}</td>
    </tr>
    <tr>
      <th>Change values</th>
      <td>
        <table>
          <tbody>
            <tr>
              <th>New values</th>
              <th>Old values</th>
            </tr>
            <tr>
              <td><pre>{{ new }}</pre></td>
              <td><pre>{{ old }}</pre></td>
            </tr>
          </tbody>
        </table>
      </td>
   </tr>
  </tbody>
</table>
{% endblock %}
