view MoinMoin/templates/diff_text.html @ 1364:582e7109a8c1

mass update - delete trailing spaces and/or add blank line to end of file
author Roger Haase <>
date Wed, 06 Jun 2012 15:03:07 -0700
parents 5479a3b62b9f
children 4ac437141bbe
line wrap: on
line source
{% import "utils.html" as utils %}

{% macro show_meta(rev) %}
    <div class="moin-diff-info moin-diff-info-rev-id">
        <span class="moin-diff-info-caption">Revision:</span>
        <span class="moin-diff-info-value">{{ rev.meta['revid'] | shorten_id }}</span>
    <div class="moin-diff-info moin-diff-info-rev-author">
        <span class="moin-diff-info-caption">Editor:</span>
        <span class="moin-diff-info-value">
            {{ utils.editor_info(rev.meta) }}
    <div class="moin-diff-info moin-diff-info-rev-size">
        <span class="moin-diff-info-caption">Size:</span>
        <span class="moin-diff-info-value">{{ rev.meta['size'] }}</span>
    <div class="moin-diff-info moin-diff-info-rev-comment">
        <span class="moin-diff-info-caption">Comment:</span>
        <span class="moin-diff-info-value">{{ rev.meta['comment'] }}</span>
{% endmacro %}

<table class="moin-diff">
        <td class="moin-diff-header">
            {{ show_meta(oldrev) }}
        <td class="moin-diff-header">
            {{ show_meta(newrev) }}
        <td class="moin-diff-removed"><span>{{ _('Deletions are marked like this.') }}</span></td>
        <td class="moin-diff-added"><span>{{ _('Additions are marked like this.') }}</span></td>
    {% for llineno, lcontent, rlineno, rcontent in diffs %}
        <tr class="moin-diff-line-number">
            <td><a href="#{{ llineno }}">{{ _('Line') }} {{ llineno }}:</a></td>
            <td><a href="#{{ rlineno }}">{{ _('Line') }} {{ rlineno }}:</a></td>
            <td class="moin-diff-removed">{{ lcontent }}</td>
            <td class="moin-diff-added">{{ rcontent }}</td>
    {% endfor %}