index.jade 835 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. script
  2. var lectureID = '#{lecture._id}';
  3. div.content
  4. div.container1
  5. h1 #{ lecture.name }
  6. p Course: #{ course.name }
  7. - if ( lecture.authorized )
  8. p Instructor:
  9. a( href = 'mailto:#{ instructor.email }' ) #{ instructor.name }
  10. - else
  11. p Instructor: #{ instructor.name }
  12. hr
  13. h2 Existing Note Pads
  14. ul
  15. - if ( notes.length > 0 )
  16. ul
  17. - each note in notes
  18. li
  19. a( href = '/note/#{ note._id }' ) #{ note.name }
  20. - if (note.public)
  21. | (Public)
  22. - else
  23. | (Private)
  24. span( note-id = note._id ).count= counts[ note._id ]
  25. span Visits: #{ note.visits || 0 }
  26. - else
  27. p No note pads have been created for this lecture yet.
  28. hr
  29. - if ( lecture.authorized )
  30. div
  31. span(class='sub_menu')
  32. a( href = '/lecture/#{ lecture._id }/notes/new' ) New Note Pad