review/templates/pieces/linecomment.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 comment.style == 'markdown' %}
{% set rendered = utils['markdown'](comment.message) %}
{% endif %}
{% if comment.node != rev.hex() %}
{% set obsolete = True %}
{% set obsclass = ' obsolete' %}
{% endif %}
<tr class="comment">
<td class="comment group {{ obsclass }}" colspan="3" id="comment-{{ comment.identifier }}">
<div class="comment-content">
<span class="identifier disabled">{{ comment.identifier }}</span>
<span class="commentlines disabled">{{ ','.join(utils['map'](utils['str'], comment.lines)) }}</span>
<a href="#comment-{{ comment.identifier }}" rel="comments" class="expand" id="comment-expand-{{ comment.identifier }}">→</a>
<script type="text/javascript">
$(function() {
$("#comment-expand-{{ comment.identifier }}").colorbox({inline: true, href: "#comment-{{ comment.identifier }}-colorboxed"});
});
</script>
<div class="avatar">
<img src="{{ utils['item_gravatar'](comment, 30) }}" />
</div>
<div>
<div class="author">
<a href="mailto:{{ utils['email'](comment.author) }}">
{{ utils['templatefilters'].person(comment.author) }}
</a>
said:
</div>
{% if comment.style == 'markdown' %}
<div class="message markdown">{{ rendered|safe }}</div>
<div class="raw disabled">{{ comment.message }}</div>
{% else %}
<div class="message raw plain">{{ comment.message }}</div>
{% endif %}
{% if not read_only %}
<a class="edit-line" href="#">Edit</a>
{% endif %}
</div>
</div>
<div id="comment-{{ comment.identifier }}-colorboxed" class="colorboxed">
<div class="avatar">
<img src="{{ utils['item_gravatar'](comment, 30) }}" />
</div>
<div>
<div class="author">
<a href="mailto:{{ utils['email'](comment.author) }}">{{ utils['templatefilters'].person(comment.author) }}</a>
said:
</div>
<div class="context">
<div class="context-head">in {{ comment.ufilename }}</div>
</div>
<div class="message">{{ comment.message }}</div>
</div>
</div>
</td>
</tr>