post.js 811 B

1234567891011121314151617181920212223242526
  1. <div class="postContainer" id="post-${_id}">
  2. <div class="postVoteContainer" data-postid="${_id}">
  3. <div class="vote-tally-rect vote-up">${votes}</div>
  4. </div>
  5. <div class="postDisplayContainer">
  6. <div class="postBody">${body}</div>
  7. <div class="postFooter">
  8. <span class="userName">${userName}</span>
  9. &mdash;
  10. <span class="userAffil">${userAffil}</span>
  11. Comments: <span class="commentAmt">${comments.length}</span>
  12. </div>
  13. </div>
  14. <div class="commentContainer hidden">
  15. </div>
  16. <form class="commentForm hidden">
  17. <input type="hidden" name="postid" value="${_id}" />
  18. <textarea id="commentText" name="commentText" disabled="disabled"></textarea>
  19. <input type="submit" value="Post Comment" disabled="disabled">
  20. <input type='checkbox' name='anonymous' /> Post anonymously
  21. </form>
  22. </div>