diff --git a/src/Foundation.hs b/src/Foundation.hs index 3f70dd564..58438298a 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -2717,6 +2717,24 @@ pageActions (CExamR tid ssh csh examn EUsersR) = , menuItemModal = True , menuItemAccessCallback' = return True } + , MenuItem + { menuItemType = PageActionPrime + , menuItemLabel = MsgMenuExamGrades + , menuItemIcon = Nothing + , menuItemRoute = SomeRoute $ CExamR tid ssh csh examn EGradesR + , menuItemModal = False + , menuItemAccessCallback' = return True + } + ] +pageActions (CExamR tid ssh csh examn EGradesR) = + [ MenuItem + { menuItemType = PageActionPrime + , menuItemLabel = MsgMenuExamUsers + , menuItemIcon = Nothing + , menuItemRoute = SomeRoute $ CExamR tid ssh csh examn EUsersR + , menuItemModal = False + , menuItemAccessCallback' = return True + } ] pageActions (CSheetR tid ssh csh shn SShowR) = [ MenuItem diff --git a/templates/exam-show.hamlet b/templates/exam-show.hamlet index cfe28bcf2..b05d2c2b6 100644 --- a/templates/exam-show.hamlet +++ b/templates/exam-show.hamlet @@ -184,7 +184,8 @@ $if gradingShown && not (null examParts) $if partNumbersShown