cms/app-client/app/templates/components/transcript-component.hbs
author ymh <ymh.work@gmail.com>
Fri, 02 Dec 2016 03:30:51 +0100
changeset 455 a8bed1c7df8e
parent 454 710a2ae08a74
child 457 a7a333c0b1eb
permissions -rw-r--r--
move the transcript highlight and autoscroll logic to the base component

<h2>
    <span class="original">{{player.transcript.title.original}}</span>
{{#if player.transcript.title.translation}}
    <span class="translation">{{player.transcript.title.translation}}</span>
{{/if}}
</h2>

<div class="transcript">
  {{#if hasSections }}
    {{#each player.transcript.sections as |section|}}
      {{transcript-section-component section=section player=player play=(action 'play') intervals=intervals}}
    {{/each}}
  {{else}}
    <ol class="annotations">
    {{#each player.transcript.annotations as |annotation|}}
      {{transcript-annotation-component annotation=annotation player=player intervals=intervals play=(action 'play') tagName='li' class='sentence'}}
    {{/each}}
    </ol>
  {{/if}}
</div>