Source

pist / pist / templates / show_repo_diff.html

{% extends 'base.html' %}

{% block title %}Viewing {{ repo.hash }} Diff{% end %}

{% block extra-nav %}
<li><a href="{{ reverse_url('edit-repo', repo.hash) }}">Edit Pist</a></li>
{% end %}

{% block content %}
<h1>
    Viewing <a href="{{ reverse_url('show-repo', repo.hash) }}">{{ repo.hash }}</a> Diff
    {% if repo.revision %}at {{ repo.revision }}{% end %}
</h1>

{% block revisions %}
<ul>
{% for rev in repo.revisions() %}
    <li>
        <a href="{{ reverse_url('show-repo-rev', repo.hash, rev.hash) }}">{{ rev }}</a>
        at {{ rev.date.strftime('%H:%M on %d %b %Y') }}
    </li>
{% end %}
</ul>
{% end %}

{{ repo.diff(revision2) }}
{% end %}