review/templates/pieces/linecomment.html @ fc97fabaf28d

Update windows contrib script for current TortoiseHg version (2.6.2).

TortoiseHg 2.6.2 is packaged with Python 2.7.3 (and not 2.6.x), and now
includes some of the libraries that this script previously needed to copy into
place.
author Chris Nielsen
date Fri, 18 Jan 2013 11:51:36 -0500
parents 5dec221dd171
children 0dc141617716
{% if comment.style == 'markdown' %}
    {% set rendered = utils['markdown'](comment.message) %}
{% endif %}

<tr class="comment">
    <td class="comment group" 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 }}">&rarr;</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>