diff --git a/templates/course.hamlet b/templates/course.hamlet index 4d99c9288..a41c11ded 100644 --- a/templates/course.hamlet +++ b/templates/course.hamlet @@ -203,53 +203,55 @@ $# $if NTop (Just 0) < NTop (courseCapacity course) $if null events \ #{iconInvisible}
-
- - - - - $forall (cID, CourseEvent{courseEventType, courseEventTime, courseEventRoom, courseEventNote}) <- events - toPathPiece cID}> -
- _{MsgCourseEventType} - - _{MsgCourseEventTime} - - _{MsgCourseEventRoom} - - _{MsgCourseEventNote} - $if mayCreateEvents - - _{MsgCourseEventActions} - \ #{iconInvisible} -
-
- #{courseEventType} -
-
- ^{occurrencesWidget courseEventTime} -
-
- #{courseEventRoom} -
-
- #{courseEventNote} +
+
+ + + + + $forall (cID, CourseEvent{courseEventType, courseEventTime, courseEventRoom, courseEventNote}) <- events + toPathPiece cID}> - - + +
+ _{MsgCourseEventType} + + _{MsgCourseEventTime} + + _{MsgCourseEventRoom} + + _{MsgCourseEventNote} $if mayCreateEvents + + _{MsgCourseEventActions} + \ #{iconInvisible} +
-
    -
  • - ^{modal (i18n MsgCourseEventsActionEdit) (Left (SomeRoute (CEventR tid ssh csh cID CEvEditR)))} -
  • - ^{modal (i18n MsgCourseEventsActionDelete) (Left (SomeRoute (CEventR tid ssh csh cID CEvDeleteR)))} - $if mayCreateEvents -
- - - -
- ^{modal (i18n MsgCourseEventsActionCreate) (Left (SomeRoute (CourseR tid ssh csh CEventsNewR)))} +
+ #{courseEventType} +
+
+ ^{occurrencesWidget courseEventTime} +
+
+ #{courseEventRoom} +
+
+ #{courseEventNote} + $if mayCreateEvents +
+
    +
  • + ^{modal (i18n MsgCourseEventsActionEdit) (Left (SomeRoute (CEventR tid ssh csh cID CEvEditR)))} +
  • + ^{modal (i18n MsgCourseEventsActionDelete) (Left (SomeRoute (CEventR tid ssh csh cID CEvDeleteR)))} + $if mayCreateEvents +
+ + + + +
+ ^{modal (i18n MsgCourseEventsActionCreate) (Left (SomeRoute (CourseR tid ssh csh CEventsNewR)))} $if hasTutorials