script var lectureID = '#{lecture._id}'; var public = true; var userID = false; var rourl = 'http://#{ host }:9001/ro/#{ roID }'; var roID = '#{roID}'; div#wrapper div#header div.fleft a(href="/") img.lilogo(src="/images/finals-club-wht.png") div.fleft div b Lecture: |   a( href = '/lecture/#{lecture._id}' )= lecture.name div b Notes: |   #{note.name} div.fright.rcol // a( href = '/note/#{note._id}', class = 'readonlylink') Read-Only Version button#toggleBC Discussion button#togglePad Notes div.clear div#sidebar div.container div#posts div#postsHeader h1 Posts select#sortPosts option( value = 'votes' ) Sort by votes option( value = 'created' ) Sort by time // | show: select#amountPosts option( value = '10' ) 10 option( value = '15' ) 15 option( value = '20' ) 20 script#postTemplate( type = 'text/x-jQuery-tmpl', src = '/javascripts/templates/post.js' ) div.postContainer( id = 'post-${_id}' ) div.postVoteContainer( data-postid = '${_id}' ) div.vote-tally-rect.vote-up ${ votes.length } div.voteFlag FLAG div.postDisplayContainer div.postBody ${ body } div.postFooter span.userName ${ userName } — span.userAffil ${ userAffil } div a( href='#', id='post-${_id}' ).comments span.commentAmt ${ comments.length } | Comments div.commentContainer.hidden form.commentForm.hidden input( type = 'hidden', name = 'postid', value = '${_id}' ) textarea#commentText( name = 'commentText', disabled = 'disabled' ) input( type = 'submit', value = 'Submit Comment', disabled = 'disabled' ) input( type = 'checkbox', name = 'anonymous' ) span(class='anonpost') Anonymously script#commentTemplate( type = 'text/x-jQuery-tmpl', src = '/javascripts/templates/comment.js' ) div.commentBody ${ body } div.commentFooter span.userName ${ userName } — span.userAffil ${ userAffil } div#editor div.readonly div( style = 'clear: both; height: 1px;' )