<li class="media comment {% if (app.user and app.user.id == comment.userId) or is_granted('ROLE_ADMIN') %}comment-operated{% endif %}" data-id="{{ comment.id }}">
  <a class="pull-left" href="javascript:">
    <img class="media-object media-object-small" src="{{ default_path('avatar',user.smallAvatar, '') }}">
  </a>
  <div class="media-body">
    <div class="media-heading">
      <a href="javascript:" class="pull-right comment-delete-btn" data-url="{{ path('comment_widget_delete', {id:comment.id}) }}">x</a>
      <a href="javascript:">{{ user.nickname }}</a>
      <span class="bullet">•</span>
      <span>{{ comment.createdTime|smart_time }}</span>
    </div>
    {{ comment.content|nl2br }}
  </div>
</li>