index.jade 811 B

123456789101112131415161718192021222324252627282930313233343536
  1. div.content
  2. div.container1
  3. h1 #{ course.displayName }
  4. - if ( course.authorized )
  5. p Instructor:
  6. a( href = 'mailto:#{ instructor.email }' ) #{ instructor.name }
  7. - else
  8. p Instructor: #{ instructor.name }
  9. hr
  10. h2 Existing Lectures
  11. ul
  12. - if ( lectures.length > 0 )
  13. - each lecture in lectures
  14. li
  15. a( href = '/lecture/#{ lecture._id }' ) #{ lecture.name }
  16. - else
  17. p No lectures have been created for this course yet.
  18. hr
  19. - if ( course.authorized )
  20. div
  21. span(class='sub_menu')
  22. a( href = '/course/#{ course._id }/lecture/new' ) New Lecture
  23. - if ( user.admin )
  24. div
  25. span(class='sub_menu')
  26. a( href = '/course/#{ course._id }/edit' ) Edit Course
  27. div
  28. span(class='sub_menu')
  29. a( href = '/course/#{ course._id }/delete' ) Delete Course