public.jade 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. script
  2. var lectureID = '#{lecture._id}';
  3. var public = true;
  4. var userID = false;
  5. var rourl = 'http://#{ host }:9001/ro/#{ roID }';
  6. var roID = '#{roID}';
  7. div#wrapper
  8. div#header
  9. div.fleft
  10. a(href="/")
  11. img.lilogo(src="/images/finals-club-wht.png")
  12. div.fleft
  13. div
  14. b Lecture:
  15. |  
  16. a( href = '/lecture/#{lecture._id}' )= lecture.name
  17. div
  18. b Notes:
  19. |  
  20. #{note.name}
  21. div.fright.rcol
  22. // a( href = '/note/#{note._id}', class = 'readonlylink') Read-Only Version
  23. button#toggleBC Discussion
  24. button#togglePad Notes
  25. div.clear
  26. div#sidebar
  27. div.container
  28. div#posts
  29. div#postsHeader
  30. h1 Posts
  31. select#sortPosts
  32. option( value = 'votes' ) Sort by votes
  33. option( value = 'created' ) Sort by time
  34. //
  35. | show:
  36. select#amountPosts
  37. option( value = '10' ) 10
  38. option( value = '15' ) 15
  39. option( value = '20' ) 20
  40. script#postTemplate( type = 'text/x-jQuery-tmpl', src = '/javascripts/templates/post.js' )
  41. div.postContainer( id = 'post-${_id}' )
  42. div.postVoteContainer( data-postid = '${_id}' )
  43. div.vote-tally-rect.vote-up ${ votes.length }
  44. div.voteFlag FLAG
  45. div.postDisplayContainer
  46. div.postBody ${ body }
  47. div.postFooter
  48. span.userName ${ userName }
  49. —
  50. span.userAffil ${ userAffil }
  51. div
  52. a( href='#', id='post-${_id}' ).comments
  53. span.commentAmt ${ comments.length }
  54. | Comments
  55. div.commentContainer.hidden
  56. form.commentForm.hidden
  57. input( type = 'hidden', name = 'postid', value = '${_id}' )
  58. textarea#commentText( name = 'commentText', disabled = 'disabled' )
  59. input( type = 'submit', value = 'Submit Comment', disabled = 'disabled' )
  60. input( type = 'checkbox', name = 'anonymous' )
  61. span(class='anonpost') Anonymously
  62. script#commentTemplate( type = 'text/x-jQuery-tmpl', src = '/javascripts/templates/comment.js' )
  63. div.commentBody ${ body }
  64. div.commentFooter
  65. span.userName ${ userName }
  66. —
  67. span.userAffil ${ userAffil }
  68. div#editor
  69. div.readonly
  70. div( style = 'clear: both; height: 1px;' )