changeset 1204:608caaa27937

Fix diff.hmtl
author Shitiz Garg <mail@dragooon.net>
date Thu, 05 Jan 2012 23:11:37 +0530
parents 057a7872cf64
children b76652381200
files MoinMoin/apps/frontend/views.py MoinMoin/templates/diff.html
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Wed Jan 04 20:59:08 2012 +0530
+++ b/MoinMoin/apps/frontend/views.py	Thu Jan 05 23:11:37 2012 +0530
@@ -1512,6 +1512,7 @@
     rev_ids = [CURRENT]  # XXX TODO we need a reverse sorted list
     return render_template(item.diff_template,
                            item=item, item_name=item.name,
+                           diff_html=Markup(item._render_data_diff(oldrev, newrev)),
                            rev=item.rev,
                            first_rev_id=rev_ids[0],
                            last_rev_id=rev_ids[-1],
--- a/MoinMoin/templates/diff.html	Wed Jan 04 20:59:08 2012 +0530
+++ b/MoinMoin/templates/diff.html	Thu Jan 05 23:11:37 2012 +0530
@@ -4,5 +4,5 @@
 <h1>{{ _("Diff for '%(item_name)s'", item_name=newrev.item.name) }}</h1>
 <br>
 {% endblock %}
-{{ Markup(item._render_data_diff(oldrev, newrev)) }}
+{{ diff_html }}
 {% endblock %}