view templates/snippet/snippet_diff.djhtml @ 195:baf8776dc44d

added code for the integration of comment system into bundles and snippets. database sync must be run so that necessary tables is created for the comments to work properly.
author ahsanalishahid <ahsan.ali.shahid@gmail.com>
date Tue, 02 Jul 2013 02:09:21 +0500
parents 801bb49f3170
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>