cms/app-client/app/templates/components/transcript-component.hbs
changeset 248 256272c33349
parent 247 7a5d729992b8
child 254 a7cf2887e993
equal deleted inserted replaced
247:7a5d729992b8 248:256272c33349
     1 <h2>{{player.transcript.title}}</h2>
     1 <h2>{{player.transcript.title}}</h2>
     2 <ol class="transcript">
     2 <ol class="transcript">
     3 {{#each player.transcript.annotations as |annotation|}}
     3 {{#each player.transcript.annotations as |annotation|}}
     4 	<li class="sentence{{if (if-and (if-operator player.progress '>=' annotation.start) (if-operator player.progress '<' annotation.end)) ' active'}}">
     4 	{{#if (if-and (if-operator player.progress '>=' annotation.start) (if-operator player.progress '<' annotation.end))}}
       
     5 	<li class="sentence active">
     5 		<i class="fa fa-play" {{action 'play' annotation.start}}>Play</i>
     6 		<i class="fa fa-play" {{action 'play' annotation.start}}>Play</i>
     6 		<p class="original">{{annotation.content}}</p>
     7 		<p class="original">{{annotation.content}}</p>
     7 		<p class="translation">{{annotation.translation}}</p>
     8 		<p class="translation">{{annotation.translation}}</p>
     8 	</li>
     9 	</li>
       
    10 	{{else}}
       
    11 	<li class="sentence" {{action 'play' annotation.start}}>
       
    12 		<i class="fa fa-play">Play</i>
       
    13 		<p class="original">{{annotation.content}}</p>
       
    14 		<p class="translation">{{annotation.translation}}</p>
       
    15 	</li>
       
    16 	{{/if}}
     9 {{/each}}
    17 {{/each}}
    10 </ol>
    18 </ol>