Remove play transcript button if sentence playing
authorChloe Laisne <chloe.laisne@gmail.com>
Fri, 14 Oct 2016 19:53:56 +0200
changeset 334 cffb9b124af3
parent 333 400719e1e9a8
child 335 9247384cb264
Remove play transcript button if sentence playing
cms/app-client/app/templates/components/transcript-component.hbs
--- a/cms/app-client/app/templates/components/transcript-component.hbs	Fri Oct 14 19:49:28 2016 +0200
+++ b/cms/app-client/app/templates/components/transcript-component.hbs	Fri Oct 14 19:53:56 2016 +0200
@@ -13,7 +13,9 @@
     <ol class="annotations">
         {{#each annotations as |annotation|}}
         <li class="sentence {{if (if-and (if-operator player.progress '>=' annotation.begin) (if-operator player.progress '<' annotation.end)) 'active'}}" {{action 'play' annotation.begin}}>
+            {{#unless (if-and (if-operator player.progress '>=' annotation.begin) (if-operator player.progress '<' annotation.end))}}
             <i class="fa fa-play" {{action 'play' annotation.begin}}>Play</i>
+            {{/unless}}
             {{#if annotation.title}}<span class="title">{{annotation.title}}</span>{{/if}}
             {{#each annotation.fragments as |fragment|}}
             <div class="fragment">