refactor(course-visibility): comment DBSTCourse
This commit is contained in:
parent
a7abe1231a
commit
036d761ec8
@ -529,7 +529,13 @@ data DBStyle r = DBStyle
|
|||||||
}
|
}
|
||||||
|
|
||||||
data DBSTemplateMode r = DBSTDefault { dbstmNumber :: Int64 -> Bool, dbstmShowNumber :: Int64 -> Bool }
|
data DBSTemplateMode r = DBSTDefault { dbstmNumber :: Int64 -> Bool, dbstmShowNumber :: Int64 -> Bool }
|
||||||
| DBSTCourse (Lens' r (Entity Course)) (Lens' r [Entity User]) (Lens' r Bool) (Lens' r (Entity School)) (Traversal' r (Entity Allocation)) (Lens' r Bool)
|
| DBSTCourse
|
||||||
|
(Lens' r (Entity Course)) -- course
|
||||||
|
(Lens' r [Entity User]) -- lecturers
|
||||||
|
(Lens' r Bool) -- isRegistered
|
||||||
|
(Lens' r (Entity School)) -- school
|
||||||
|
(Traversal' r (Entity Allocation)) -- allocation
|
||||||
|
(Lens' r Bool) -- mayEditCourse
|
||||||
|
|
||||||
instance Default (DBStyle r) where
|
instance Default (DBStyle r) where
|
||||||
def = DBStyle
|
def = DBStyle
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user