style(schedule): enhance display for joined entries
This commit is contained in:
parent
bbd5b73142
commit
a4a26afa7a
@ -266,3 +266,6 @@ dayOfWeekToDayWith weekDay = go where
|
|||||||
| weekDay' > weekDay = go $ pred d
|
| weekDay' > weekDay = go $ pred d
|
||||||
| otherwise = go $ succ d
|
| otherwise = go $ succ d
|
||||||
where weekDay' = dayOfWeek d
|
where weekDay' = dayOfWeek d
|
||||||
|
|
||||||
|
indexedList :: [a] -> [(Int, a)]
|
||||||
|
indexedList = zip [0..]
|
||||||
|
|||||||
@ -50,7 +50,7 @@ $newline never
|
|||||||
<br>
|
<br>
|
||||||
^{formatEitherOccurrenceW stOccurrence}
|
^{formatEitherOccurrenceW stOccurrence}
|
||||||
$of ScheduleExamOccurrence{seoCourse=Entity _ Course{courseName},seoExamName,seoRooms,seoStart,seoEnd}
|
$of ScheduleExamOccurrence{seoCourse=Entity _ Course{courseName},seoExamName,seoRooms,seoStart,seoEnd}
|
||||||
#{CI.original courseName}: #{seoExamName}
|
#{CI.original courseName}: #{seoExamName} #
|
||||||
$if slotAssocIsCont slotAssociation
|
$if slotAssocIsCont slotAssociation
|
||||||
(_{MsgScheduleWeekSlotIsCont})
|
(_{MsgScheduleWeekSlotIsCont})
|
||||||
<br>
|
<br>
|
||||||
@ -63,10 +63,12 @@ $newline never
|
|||||||
<br>
|
<br>
|
||||||
$of more
|
$of more
|
||||||
_{MsgScheduleRooms}: #
|
_{MsgScheduleRooms}: #
|
||||||
$forall (mRoom,showRoom) <- more
|
$forall (idx,(mRoom,showRoom)) <- indexedList more
|
||||||
$if showRoom
|
$if showRoom
|
||||||
$maybe room <- mRoom
|
$maybe room <- mRoom
|
||||||
^{roomReferenceWidget room}
|
^{roomReferenceWidget room}
|
||||||
|
$if idx < pred (length more)
|
||||||
|
; #
|
||||||
<br>
|
<br>
|
||||||
_{MsgScheduleOccur}: #
|
_{MsgScheduleOccur}: #
|
||||||
$if Just (utctDay seoStart) == fmap utctDay seoEnd
|
$if Just (utctDay seoStart) == fmap utctDay seoEnd
|
||||||
|
|||||||
Reference in New Issue
Block a user