cms/app-client/app/templates/components/transcript-component.hbs
author Chloe Laisne <chloe.laisne@gmail.com>
Thu, 04 Aug 2016 17:59:38 +0200
changeset 250 296c7d34d2ba
parent 248 256272c33349
child 254 a7cf2887e993
permissions -rw-r--r--
Notice button width

<h2>{{player.transcript.title}}</h2>
<ol class="transcript">
{{#each player.transcript.annotations as |annotation|}}
	{{#if (if-and (if-operator player.progress '>=' annotation.start) (if-operator player.progress '<' annotation.end))}}
	<li class="sentence active">
		<i class="fa fa-play" {{action 'play' annotation.start}}>Play</i>
		<p class="original">{{annotation.content}}</p>
		<p class="translation">{{annotation.translation}}</p>
	</li>
	{{else}}
	<li class="sentence" {{action 'play' annotation.start}}>
		<i class="fa fa-play">Play</i>
		<p class="original">{{annotation.content}}</p>
		<p class="translation">{{annotation.translation}}</p>
	</li>
	{{/if}}
{{/each}}
</ol>