review/templates/pieces/linecomment.html @ 103828d0bc1a

web: use fetch instead of pull
author Steve Losh <steve@stevelosh.com>
date Sat, 19 Jun 2010 00:17:31 -0400
parents 24f0d81f3aa5
children fb401cae8830
{% 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="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>
                {% else %}
                    <div class="message plain">{{ comment.message }}</div>
                {% 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.filename }}</div>
                </div>
                <div class="message">{{ comment.message }}</div>
            </div>
        </div>
    </td>
</tr>