{% if service.canAccess('post.delete', post) %}
  <div class="thread-post-manage-dropdown dropdown pull-right">
    <a href="javascript:;" class="dropdown-toggle text-muted" data-toggle="dropdown"><span class="glyphicon glyphicon-collapse-down"></span></a>
    <ul class="dropdown-menu">
      <li>
        <a href="javascript:" class="js-post-delete" data-url="{{ path('thread_post_delete', {threadId:post.threadId, postId:post.id}) }}" data-for="#post-{{ post.id }}">删除</a>
      </li>
    </ul>
  </div>
{% endif %}