view templates/snippet/snippet_diff.djhtml @ 207:d534881629ff

Updated snippet's template and views files to fix rating code collision which prevented posting new snippets. Updated snippet's models file so that now secret id of each snippet will be unique. It also means that the no two or more than two snippets will have same secret id.
author Ahsan Ali Shahid <ahsan.ali.shahid@gmail.com>
date Mon, 19 Aug 2013 20:30:19 +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>