           appManager.tell "Members", "createContentDisplay", origin
 
   confirmDeleteComment:(data)->
+    {type} = @getOptions()
     modal = new KDModalView
-      title          : "Delete comment"
-      content        : "<div class='modalformline'>Are you sure you want to delete this comment?</div>"
+      title          : "Delete #{type}"
+      content        : "<div class='modalformline'>Are you sure you want to delete this #{type}?</div>"
       height         : "auto"
       overlay        : yes
       buttons        :

                type     : "mini"
                cssClass : "error editor"
                title     : "Error, please try again later!"
        # cancel       :
        #   style      : "modal-cancel"
        #   callback   : => modal.destroy()

  pistachio:->
    if @getData().getAt 'deletedAt'
      @setClass "deleted"
      if @deleter
        "<div class='item-content-comment clearfix'><span>{{> @author}}'s comment has been deleted by {{> @deleter}}.</span></div>"
      else
        "<div class='item-content-comment clearfix'><span>{{> @author}}'s comment has been deleted.</span></div>"
    else
      """
      <div class='item-content-comment clearfix'>
        <span class='avatar'>{{> @avatar}}</span>
        <div class='comment-contents clearfix'>
          {{> @deleteLink}}
          <p class='comment-body'>
            {{> @author}}
            {{@utils.applyTextExpansions #(body), yes}}
          </p>
          <time>{{$.timeago #(meta.createdAt)}}</time>
        </div>
      </div>
      """

          listenedToInstance : @deleteLink
          callback           : => @confirmDeleteComment data

    @likeView = new LikeView {}, data

  render:->
    if @getData().getAt 'deletedAt'
      @emit 'CommentIsDeleted'
    @updateTemplate()
    super

  viewAppended:->
    @updateTemplate yes
    @template.update()

  click:(event)->

    if $(event.target).is("span.collapsedtext a.more-link")
      @$("span.collapsedtext").addClass "show"
      @$("span.collapsedtext").removeClass "hide"

    if $(event.target).is("span.collapsedtext a.less-link")
      @$("span.collapsedtext").removeClass "show"
      @$("span.collapsedtext").addClass "hide"

    if $(event.target).is "span.avatar a, a.user-fullname"
      {originType, originId} = @getData()
