40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
<div uw-course-teaser :isRegistered:.course-teaser__registered :is _Nothing courseDescription:.course-teaser__not-expandable :is _Just courseDescription:tabindex="1">
|
|
<div .course-teaser__semester>
|
|
<a href=@{TermCourseListR courseTerm}>_{courseSemester}
|
|
<div .course-teaser__school>
|
|
<a href=@{TermSchoolCourseListR courseTerm courseSchool}>_{courseSchoolName}
|
|
<div .course-teaser__shorthand>
|
|
<a href=@{CourseR courseTerm courseSchool courseShorthand CShowR}>
|
|
_{courseShorthand}
|
|
<div .course-teaser__title>
|
|
<a href=@{CourseR courseTerm courseSchool courseShorthand CShowR}>
|
|
_{courseName}
|
|
$if not courseIsVisible && mayEdit
|
|
\ #{iconInvisible}
|
|
$if isRegistered
|
|
<div .course-teaser__registration>
|
|
<span>_{MsgRegistered}
|
|
<i .fas .fa-check>
|
|
$if not $ null courseLecturers
|
|
<div .course-teaser__lecturer-label>
|
|
_{MsgLecturersForN (length courseLecturers)}
|
|
<div .course-teaser__lecturer>
|
|
<ul .list--inline .list--comma-separated>
|
|
$forall lecturer <- courseLecturers
|
|
<li>
|
|
#{lecturer}
|
|
$maybe Entity _ Allocation{allocationTerm, allocationSchool, allocationShorthand, allocationName} <- courseAllocation
|
|
<div .course-teaser__duedate-label>_{MsgRegistration}
|
|
<div .course-teaser__duedate>
|
|
<a href=@{AllocationR allocationTerm allocationSchool allocationShorthand AShowR}>
|
|
#{allocationName}
|
|
$nothing
|
|
$maybe regFrom <- courseRegisterFrom
|
|
<div .course-teaser__duedate-label>_{MsgRegistration}
|
|
<div .course-teaser__duedate>^{formatTimeRangeW SelFormatDateTime regFrom courseRegisterTo}
|
|
|
|
$maybe desc <- courseDescription
|
|
<div .course-teaser__chevron>
|
|
<div .course-teaser__description-label>_{MsgCourseDescription}
|
|
<div .course-teaser__description>#{desc}
|