remove empty lines
[oweals/finalsclub.git] / views / notes / public.jade
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
8 div#wrapper
9         div#header
10                 div.fleft
11                         a(href="/")
12                                 img.lilogo(src="/images/finals-club-wht.png")
13                 div.fleft
14                         div
15                                 b Lecture: 
16                                 |  
17                                 a( href = '/lecture/#{lecture._id}' )= lecture.name
18                         div
19                                 b Notes:
20                                 |  
21                                 #{note.name}
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
28
29         div#sidebar
30                 div.container
31
32                         div#posts
33                                 div#postsHeader
34                                         h1 Posts
35                                                 select#sortPosts
36                                                         option( value = 'votes' ) Sort by votes
37                                                         option( value = 'created' ) Sort by time
38
39                                         //
40                                                 | show:
41
42                                                 select#amountPosts
43                                                         option( value = '10' ) 10
44                                                         option( value = '15' ) 15
45                                                         option( value = '20' ) 20
46
47                 script#postTemplate( type = 'text/x-jQuery-tmpl', src = '/javascripts/templates/post.js' )
48                         div.postContainer( id = 'post-${_id}' )
49                                 div.postVoteContainer( data-postid = '${_id}' )
50                                         div.vote-tally-rect.vote-up ${ votes.length }
51                                         div.voteFlag FLAG
52                                 div.postDisplayContainer
53                                         div.postBody ${ body }
54                                         div.postFooter
55                                                 span.userName ${ userName }
56                                                 —
57                                                 span.userAffil ${ userAffil }
58                                                 div
59                                                                 a( href='#', id='post-${_id}' ).comments
60                                                                         span.commentAmt ${ comments.length } 
61                                                                         | Comments
62
63                                 div.commentContainer.hidden
64
65                                 form.commentForm.hidden
66                                         input( type = 'hidden', name = 'postid', value = '${_id}' )
67                                         textarea#commentText( name = 'commentText', disabled = 'disabled' )
68                                         input( type = 'submit', value = 'Submit Comment', disabled = 'disabled' )
69                                         input( type = 'checkbox', name = 'anonymous' )
70                                         span(class='anonpost') Anonymously
71
72                 script#commentTemplate( type = 'text/x-jQuery-tmpl', src = '/javascripts/templates/comment.js' )
73                         div.commentBody ${ body }
74
75                         div.commentFooter
76                                 span.userName ${ userName }
77                                 —
78                                 span.userAffil ${ userAffil }
79
80         div#editor
81                 div.readonly
82
83         div( style = 'clear: both; height: 1px;' )