$newline never

$# SPDX-FileCopyrightText: 2022 Felix Hamann <felix.hamann@campus.lmu.de>,Gregor Kleen <gregor.kleen@ifi.lmu.de>,Sarah Vaupel <vaupel.sarah@campus.lmu.de>,Steffen Jost <jost@tcs.ifi.lmu.de>,Winnie Ros <winnie.ros@campus.lmu.de>
$#
$# SPDX-License-Identifier: AGPL-3.0-or-later

<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 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>_{MsgTableCourseDescription}
    <div .course-teaser__description>#{desc}
