<section
  class="course-visualize-session-type"
  data-test-course-visualize-session-type
  {{did-insert (perform this.load)}}
>
  {{#unless this.load.isRunning}}
    <div class="breadcrumbs" data-test-breadcrumb>
      <span>
        <LinkTo @route="course" @model={{@model.course}}>
          {{@model.course.title}}
        </LinkTo>
      </span>
      <span>
        <LinkTo @route="course-visualizations" @model={{@model.course}}>
          {{t "general.visualizations"}}
        </LinkTo>
      </span>
      <span>
        <LinkTo @route="course-visualize-session-types" @model={{@model.course}}>
          {{t "general.sessionTypes"}}
        </LinkTo>
      </span>
      <span>
        {{@model.sessionType.title}}
      </span>
    </div>
    <h2>
      {{t "general.vocabularyTermsFor" subject=@model.sessionType.title}}
    </h2>
    <h3 class="clickable" data-test-title>
      <LinkTo @route="course" @model={{@model.course}}>
        {{@model.course.title}}
        {{#if this.academicYearCrossesCalendarYearBoundaries}}
          {{@model.course.year}} - {{add @model.course.year 1}}
        {{else}}
          {{@model.course.year}}
        {{/if}}
      </LinkTo>
    </h3>
    <div class="visualizations">
      <VisualizerCourseSessionType
        @course={{@model.course}}
        @sessionType={{@model.sessionType}}
      />
    </div>
  {{/unless}}
</section>
