diff -r a7cf2887e993 -r ed05b89e3299 cms/app-client/app/templates/components/transcript-component.hbs --- a/cms/app-client/app/templates/components/transcript-component.hbs Tue Aug 16 00:16:08 2016 +0200 +++ b/cms/app-client/app/templates/components/transcript-component.hbs Wed Aug 17 15:30:19 2016 +0200 @@ -1,16 +1,37 @@

{{player.transcript.title}}

    {{#each player.transcript.annotations as |annotation|}} +{{log 'each-annotation'}} {{#if (if-and (if-operator player.progress '>=' annotation.start) (if-operator player.progress '<' annotation.end))}}
  1. Play {{#if annotation.content}}

    {{annotation.content}}

    {{/if}} + {{#if annotation.words}} +
    + {{#each annotation.words as |word|}} +
    +

    {{word.content}}

    +

    {{word.translation}}

    +
    + {{/each}} +
    + {{/if}} {{#if annotation.translation}}

    {{annotation.translation}}

    {{/if}}
  2. {{else}}
  3. Play {{#if annotation.content}}

    {{annotation.content}}

    {{/if}} + {{#if annotation.words}} +
    + {{#each annotation.words as |word|}} +
    +

    {{word.content}}

    +

    {{word.translation}}

    +
    + {{/each}} +
    + {{/if}} {{#if annotation.translation}}

    {{annotation.translation}}

    {{/if}}
  4. {{/if}}