anchor.diff:      error ->
         []
     end,
  -  post_editor("comment-items", "", TagList, "Submit", add_post, "Cancel", cancel_add).
  -
  -
  -post_editor(Id, Body, TagList, Submit, SubmitPostback, Cancel, CancelPostback) ->
  +  post_editor("comment-items", "", "", TagList, "Submit", add_post, "Cancel", cancel_add).
  +
  +
  +post_editor(Id, Title, Body, TagList, Submit, SubmitPostback, Cancel, CancelPostback) ->
     #panel{id = Id,
       body = [
  +      #textbox{id="post-title", text = Title},
  +      #br{},
         #textarea{id="textarea", class="post-input", text = Body},
         #tagsinput{id="tags-input", text = unicode:characters_to_binary(string:join([unicode:characters_to_list(T) || T <- TagList], ","))},
         #button{id = submit, text = Submit, postback = SubmitPostback},
  
positive.code:   User = wf:user(),
    if
      User =/= undefined ->
        Text = wf:q("textarea"),
        Tags = wf:q("tags-input"),
  
  
negative.code:   ].
  
  post_body(Post) ->
    #panel{id = "post", class = "post", body = [
      #panel{class = "post-title", body = Post#mt_post.title},
      #panel{class = "post-body", body = [Post#mt_post.body]}
    ]}.
  
  comment_tree(Comments) ->
    comment_tree(Comments, []).
  