review/templates/pieces/comment.html @ 62c034fdeed2

web: add colorbox for comments
author Steve Losh <steve@stevelosh.com>
date Mon, 14 Jun 2010 19:59:49 -0400
parents c92ca10967c3
children 78d9f73badd9
<div class="comment group" id="comment-{{ comment.identifier }}">
    <a href="#comment-{{ comment.identifier }}" class="expand" id="comment-expand-{{ comment.identifier }}">+</a>
    <script type="text/javascript">
        $(function() {
            $("#comment-expand-{{ comment.identifier }}").colorbox({inline: true, href: "#comment-{{ comment.identifier }}"});
        });
    </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>
        <div class="message">{{ comment.message }}</div>
    </div>
</div>