diff --git a/markupwiki/templates/article_diff.html b/markupwiki/templates/article_diff.html index 2358cfe..d48f8fe 100644 --- a/markupwiki/templates/article_diff.html +++ b/markupwiki/templates/article_diff.html @@ -1,2 +1,20 @@ +{% extends "markupwiki/base.html" %} + +{% block extrahead %} + +{% endblock %} + +{% block content %} +

comparison of {{article.title}} revision {{from}} to {{to}}

{{ table|safe }} +{% endblock content %} diff --git a/markupwiki/views.py b/markupwiki/views.py index 2af5757..9d7f19a 100644 --- a/markupwiki/views.py +++ b/markupwiki/views.py @@ -145,5 +145,7 @@ def article_diff(request, title): from_body = from_version.body.raw.split('\n') to_body = to_version.body.raw.split('\n') table = differ.make_table(from_body, to_body) - return render_to_response('article_diff.html', {'table':table}, + return render_to_response('article_diff.html', + {'article': article, 'table':table, + 'from': from_id, 'to':to_id}, context_instance=RequestContext(request))