Source

lodgeit-main / lodgeit / templates / compare_paste.html

Full commit
{% extends "layout.html" %}
{% from 'utils/macros.html' import render_diff_part %}
{% set page_title = 'Compare Pastes' %}
{% set active_page = 'all' %}
{% block body %}
  <p>
    Differences between the pastes
    <a href="{{ url_for('pastes.show_paste', identifier=new.identifier) }}">#{{ new.identifier }}</a> ({{ new.pub_date|datetimeformat }})
    and <a href="{{ url_for('pastes.show_paste', identifier=old.identifier) }}">#{{ old.identifier }}</a> ({{ old.pub_date|datetimeformat }}). Download as <a href="{{ url_for('pastes.unidiff_paste', new_id=new.identifier, old_id=old.identifier) }}">unified diff</a>.
  </p>
  {% if diff.chunks %}
    {{ render_diff_part(diff) }}
  {% else %}
    <p>{% trans %}The two pastes are identical.{% endtrans %}</p>
  {% endif %}
{% endblock %}