[% USE scalar %]
[% BLOCK show_comment %]

<hr>

  <p class="blog-post-meta" id="[% this_comment.html_id %]">
    [ [% this_comment.id %] ] |
    [% date.format(this_comment.ts) %] by <i>[% this_comment.user.username %]</i></a>
    
    [% IF User.can_comment %]
      <a 
        style="cursor:pointer; font-size:.8em;"
        onclick="promptSubComment('[% remote_action_path %]/comment/add','[% this_comment.id %]')"
      >Reply</a>
    [% END %]
    
  </p>
  <p>
    [% this_comment.body %]
  </p>
  <div style="padding-left:25px;">

    [% FOREACH child IN this_comment.scalar.comments.all %]
      [% PROCESS show_comment this_comment=child %]
    [% END %]
  </div>

[% END %]


[% IF comment %]
  [% PROCESS show_comment this_comment=comment %]
[% END %]