review/templates/pieces/signoff.html @ 354188b0eca0

Allow signoff to be added when one already exists on a precursor.

The current obsolescence support makes little difference between
comments/signoff from a cset and the ones from its predecessors.

This patch avoid a signoff from a precursor to be seen as changeable, and allow
the user to re-signoff on the latest version of the changeset.
author Christophe de Vienne <cdevienne@gmail.com>
date Wed, 29 Oct 2014 14:32:27 +0100
parents 0dc141617716
children (none)
{% if signoff.style == 'markdown' %}
    {% set rendered = utils['markdown'](signoff.message) %}
{% endif %}

{% if signoff.node != rev.hex() %}
    {% set obsolete = True %}
    {% set obsclass = ' obsolete' %}
{% endif %}

<div class="signoff group {{ signoff.opinion or 'neutral' }}{{ obsclass }}">
    <div class="avatar">
        <img src="{{ utils['item_gravatar'](signoff, 30) }}" />
    </div>

    <div class="signoff-opinion {{ signoff.opinion or "neutral" }}">{{ signoff.opinion or "meh" }}</div>

    <div>
        <div class="author">
            <a href="mailto:{{ utils['email'](signoff.author) }}">{{ utils['templatefilters'].person(signoff.author) }}</a>
            signed off as <span class="opinion">{{ signoff.opinion or "neutral" }}</span> on this changeset, saying:
        </div>

        {% if signoff.style == 'markdown' %}
            <div class="message markdown">{{ rendered|safe }}</div>
        {% else %}
            <div class="message plain">{{ signoff.message }}</div>
        {% endif %}
    </div>
</div>