$newline never
<dl .deflist>
  <dt .deflist__dt>Fakultät/Institut
  <dd .deflist__dd>
    <div>
      #{schoolName}

  $maybe descr <- courseDescription course
    <dt .deflist__dt>_{MsgCourseDescription}
    <dd .deflist__dd>
      <div>
        #{descr}

  $with numlecs <- length lecturers
    $if numlecs /= 0
      $if numlecs > 1
        <dt .deflist__dt>_{MsgLecturersFor}
      $else
        <dt .deflist__dt>_{MsgLecturerFor}
      <dd .deflist__dd>
        <div>
          <ul .list--inline .list--comma-separated>
            $forall lect <- lecturers
              <li>^{nameEmailWidget' lect}
  $with numassi <- length assistants
    $if numassi /= 0
      $if numassi > 1
        <dt .deflist__dt>_{MsgAssistantsFor}
      $else
        <dt .deflist__dt>_{MsgAssistantFor}
      <dd .deflist__dd>
        <div>
          <ul .list--inline .list--comma-separated>
            $forall assi <- assistants
              <li>^{nameEmailWidget' assi}

  $with numtutor <- length tutors
    $if numtutor /= 0
      <dt .deflist__dt>_{MsgTutorsFor numtutor}
      <dd .deflist__dd>
        <div>
          <ul .list--inline .list--comma-separated>
            $forall tutor <- tutors
              <li>^{nameEmailWidget' tutor}

  $with numcorrector <- length correctors
    $if numcorrector /= 0
      <dt .deflist__dt>_{MsgCorrectorsFor numcorrector}
      <dd .deflist__dd>
        <div>
          <ul .list--inline .list--comma-separated>
            $forall corrector <- correctors
              <li>^{nameEmailWidget' corrector}

  $maybe link <- courseLinkExternal course
    <dt .deflist__dt>Website
    <dd .deflist__dd>
      <div>
        <a href=#{link} target="_blank" rel="noopener" title="Website des Kurses">#{link}
$#    $if NTop (Just 0) < NTop (courseCapacity course)
  <dt .deflist__dt>Teilnehmer
  <dd .deflist__dd>
      <div>
        #{participants}
        $maybe capacity <- courseCapacity course
          \ von #{capacity}
  $maybe (name, url) <- mAllocation'
    <dt .deflist__dt>_{MsgCourseAllocation}
    <dd .deflist__dd>
      <a href=#{url}>
        #{name}
  $nothing
    $maybe regFrom <- mRegFrom
      <dt .deflist__dt>Anmeldezeitraum
      <dd .deflist__dd>
        <div>
          Ab #{regFrom}
          $maybe regTo <- mRegTo
            \ bis #{regTo}
        $maybe dereg <- mDereg
          <div>
            \ <em>Achtung:</em>
            \ Abmeldung nur bis #{dereg} erlaubt.
  $maybe aInst <- courseApplicationsInstructions course
    <dt .deflist__dt>
      $if courseApplicationsRequired course
        _{MsgCourseApplicationInstructionsApplication}
      $else
        _{MsgCourseApplicationInstructionsRegistration}
    <dd .deflist__dd>
      <div>
        #{aInst}
      $if hasApplicationTemplate
        <p>
          <a href=@{CourseR tid ssh csh CRegisterTemplateR}>
            #{iconRegisterTemplate} #
            $if courseApplicationsRequired course
              _{MsgCourseApplicationTemplateApplication}
            $else
              _{MsgCourseApplicationTemplateRegistration}
  $if registrationOpen || isJust mRegAt
    <dt .deflist__dt>
      _{MsgCourseRegistration}
    <dd .deflist__dd>
      <div .course__registration>
        $if registrationOpen
          $# regForm is defined through templates/widgets/registerForm
          ^{regForm}
          $if isJust mApplication && courseApplicationsRequired course
            <p>
              _{MsgCourseApplicationDeleteToEdit}
          $else
            $if isJust mRegAt
              <p>
                _{MsgCourseRegistrationDeleteToEdit}
        $maybe date <- mRegAt
          _{MsgRegisteredSince} #{date}
  <dt .deflist__dt>
    Material
  <dd .deflist__dd>
    <div>
      $if courseMaterialFree course
        Das Kursmaterial ist ohne Anmeldung frei zugänglich.
      $else
        Eine Anmeldung zum Kurs ist Voraussetzung zum Zugang zu Kursmaterial
        (z.B. Übungsblätter).
  $if hasExams
    <dt .deflist__dt>_{MsgCourseExams}
    <dd .deflist__dd>
      ^{examTable}
  $if hasTutorials
    <dt .deflist__dt>_{MsgCourseTutorials}
    <dd .deflist__dd>
      ^{tutorialTable}

