Basic diff between source -> HEAD or source -> dest.

This commit is contained in:
Tom Price
2015-04-25 19:03:28 +01:00
parent 7999378d71
commit b5b8b0918b
4 changed files with 48 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
{% extends 'base.html' %}
{% block title %}Versions{% endblock %}
{% block content %}
{% for field, change in diff.items %}
{{ change }}<br>
{% autoescape off %}
{{ change }}
{% endautoescape %}
<br>
{% endfor %}
{% endblock %}

View File

@@ -26,7 +26,7 @@
<tbody>
{% for version in object_list %}
<tr>
<td>{{ version.revision.pk }}</td>
<td>{{ version.pk }}</td>
<td>{{ version.revision.date_created }}</td>
<td>{{ version.revision.user.name }}</td>
<td>{% for key, old, new in version.changes %}