view templates/snippet/snippet_diff.html @ 42:ab608f27ecd5

Copy preliminary django-paste code for snippets along with mptt. Works clunkily. Still need to adapt it for Agora.
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Thu, 29 Jul 2010 00:25:30 -0500
parents
children
line wrap: on
line source

{% load i18n %}

<h2>
    <span style="float:right;">(<a href="#" onclick="$('#diff').slideUp('fast'); return false;">{% trans "Close" %}</a>)</span>
    {% blocktrans with fileA.get_absolute_url as filea_url and fileB.get_absolute_url as fileb_url and fileA.id as filea_id and fileB.id as fileb_id %}
    Diff between
    <a href="{{ filea_url }}">Snippet #{{ filea_id }}</a>
    and
    <a href="{{ fileb_url }}">Snippet #{{ fileb_id }}</a>
    {% endblocktrans %}
</h2>

<pre class="code">{{ difftext|safe }}</pre>