cms/app-client/app/templates/application.hbs
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 02 Oct 2016 20:23:58 +0200
changeset 315 e3217b6adea3
parent 255 ed05b89e3299
child 333 400719e1e9a8
permissions -rw-r--r--
Display footer toolbar only when transcript or notice is open
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
242
523ca6e73353 Add video player
Chloe Laisne <chloe.laisne@gmail.com>
parents: 228
diff changeset
     1
{{player-component action="changeDocument" document=currentItem}}
196
7550cb541901 Filter as a service
Chloe Laisne <chloe.laisne@gmail.com>
parents: 192
diff changeset
     2
217
989b9c36b849 Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents: 200
diff changeset
     3
<div class="corpus-window">
315
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
     4
228
a2497a2b6224 Notice display logic and design
Chloe Laisne <chloe.laisne@gmail.com>
parents: 227
diff changeset
     5
    {{#if notice}}
a2497a2b6224 Notice display logic and design
Chloe Laisne <chloe.laisne@gmail.com>
parents: 227
diff changeset
     6
    <div class="corpus-app-modal">
a2497a2b6224 Notice display logic and design
Chloe Laisne <chloe.laisne@gmail.com>
parents: 227
diff changeset
     7
        {{ notice-component class="overlay" model=noticeModel }}
a2497a2b6224 Notice display logic and design
Chloe Laisne <chloe.laisne@gmail.com>
parents: 227
diff changeset
     8
    </div>
a2497a2b6224 Notice display logic and design
Chloe Laisne <chloe.laisne@gmail.com>
parents: 227
diff changeset
     9
    {{/if}}
315
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    10
246
5b7ae96768be Bsic transcript-component design
Chloe Laisne <chloe.laisne@gmail.com>
parents: 242
diff changeset
    11
    <div class="corpus-app-container{{if player.window ' window'}}">
315
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    12
    {{#if player.window}}
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    13
        {{#if (eq player.window 'notice')}}
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    14
            {{ notice-component }}
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    15
        {{else if (if-and (eq player.window 'transcript') player.transcript)}}
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    16
            {{ transcript-component }}
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    17
        {{/if}}
218
38e1a1446319 Player toolbar actions and display logic
Chloe Laisne <chloe.laisne@gmail.com>
parents: 217
diff changeset
    18
    {{else}}
217
989b9c36b849 Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents: 200
diff changeset
    19
        {{ outlet }}
218
38e1a1446319 Player toolbar actions and display logic
Chloe Laisne <chloe.laisne@gmail.com>
parents: 217
diff changeset
    20
    {{/if}}
217
989b9c36b849 Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents: 200
diff changeset
    21
    </div>
315
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    22
    {{#if player.window}}
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    23
    {{toolbar-component}}
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    24
    {{/if}}
196
7550cb541901 Filter as a service
Chloe Laisne <chloe.laisne@gmail.com>
parents: 192
diff changeset
    25
217
989b9c36b849 Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents: 200
diff changeset
    26
    <div class="corpus-app-wrapper">
989b9c36b849 Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents: 200
diff changeset
    27
        {{ filter-component }}
227
5c9250f55f4b Basic notice logic from query parameters
Chloe Laisne <chloe.laisne@gmail.com>
parents: 218
diff changeset
    28
        {{ playlist-component notice=notice model=model }}
217
989b9c36b849 Toolbar and Notice component styles
Chloe Laisne <chloe.laisne@gmail.com>
parents: 200
diff changeset
    29
    </div>
196
7550cb541901 Filter as a service
Chloe Laisne <chloe.laisne@gmail.com>
parents: 192
diff changeset
    30
315
e3217b6adea3 Display footer toolbar only when transcript or notice is open
Chloe Laisne <chloe.laisne@gmail.com>
parents: 255
diff changeset
    31
</div>