index.jade 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. script
  2. var lectureID = '#{lecture._id}';
  3. var noteID = '#{note._id}';
  4. var userName = '#{user.displayName}';
  5. var userID = '#{user._id}';
  6. var userAffil = '#{user.affil}';
  7. var public = false;
  8. var RO = #{RO};
  9. var rourl = 'http://finalsclub.org:9001/ro/#{ roID }';
  10. var roID = '#{roID}';
  11. div#wrapper
  12. div#header
  13. div.fleft
  14. a(href="/")
  15. img.lilogo(src="/images/finals-club-wht.png")
  16. div.fleft
  17. div
  18. b Lecture:
  19. a( href = '/lecture/#{lecture._id}' )= lecture.name
  20. div
  21. !=partial( 'dropdown' )
  22. div.fright.rcol
  23. // a( href = '/note/#{note._id}', class = 'readonlylink') Read-Only Version
  24. button#toggleBC Discussion
  25. button#togglePad Notes
  26. div.clear
  27. div#sidebar
  28. div.container
  29. div.userBox
  30. h3 Post Your Own Question
  31. div#enterPost
  32. form#enterPostForm
  33. input#hostMeetingId( type = 'hidden', name = 'data[Post][meeting_id]', value='926' )
  34. textarea#enterPostTextarea( name = 'data[Post][body]', rows='3' )
  35. input#submitPost( type = 'button', name = 'submitPost', value = 'Submit Post' )
  36. input( type = 'checkbox', name = 'anonymous' )
  37. span(class='anonpost') Anonymously
  38. input( type = 'checkbox', name = 'private' )
  39. span(class='anonpost') Private
  40. div#posts
  41. div#postsHeader
  42. h1 Posts
  43. select#sortPosts
  44. option( value = 'votes' ) Sort by votes
  45. option( value = 'created' ) Sort by time
  46. //
  47. | show:
  48. select#amountPosts
  49. option( value = '10' ) 10
  50. option( value = '15' ) 15
  51. option( value = '20' ) 20
  52. script#postTemplate( type = 'text/x-jQuery-tmpl', src = '/javascripts/templates/post.js' )
  53. div.postContainer( id = 'post-${_id}' )
  54. div.postVoteContainer( data-postid = '${_id}' )
  55. div.vote-tally-rect.vote-up ${ votes.length }
  56. div.voteFlag FLAG
  57. div.privacy
  58. div.postDisplayContainer
  59. div.postBody ${ body }
  60. div.postFooter
  61. span.userName ${ userName }
  62. —
  63. span.userAffil ${ userAffil }
  64. div.commenttoggle
  65. a( href='#', id='post-${_id}' ).comments
  66. span.commentAmt ${ comments.length }
  67. | Comments
  68. div.commentContainer.hidden
  69. form.commentForm.hidden
  70. input( type = 'hidden', name = 'postid', value = '${_id}' )
  71. textarea#commentText( name = 'commentText', disabled = 'disabled' )
  72. input( type = 'submit', value = 'Submit Comment', disabled = 'disabled' )
  73. input( type = 'checkbox', name = 'anonymous' )
  74. span(class='anonpost') Anonymously
  75. script#commentTemplate( type = 'text/x-jQuery-tmpl', src = '/javascripts/templates/comment.js' )
  76. div.commentBody ${ body }
  77. div.commentFooter
  78. span.userName ${ userName }
  79. —
  80. span.userAffil ${ userAffil }
  81. div#editor
  82. iframe( id = 'epliframe', src = 'http://#{ host }:9001/p/#{ note._id }?userName=#{ user.name }', width = '100%', height = '100%', style = 'border: none;' )
  83. div( style = 'clear: both; height: 1px;' )