-
Notifications
You must be signed in to change notification settings - Fork 17
/
component.hbs
37 lines (31 loc) · 1.14 KB
/
component.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{{! make the _globals object in course.json available to this template}}
{{import_globals}}
{{#any displayTitle body instruction}}
<div class="component__header {{lowercase _component}}__header" id="{{_id}}-header">
<div class="component__header-inner {{lowercase _component}}__header-inner">
{{#if displayTitle}}
<div class="component__title {{lowercase _component}}__title">
<div class="component__title-inner {{lowercase _component}}__title-inner js-heading"></div>
</div>
{{/if}}
{{component_description}}
{{#if body}}
<div class="component__body {{lowercase _component}}__body">
<div class="component__body-inner {{lowercase _component}}__body-inner">
{{{compile body}}}
</div>
</div>
{{/if}}
{{#any instruction mobileInstruction}}
<div class="component__instruction {{lowercase _component}}__instruction">
<span class="icon" aria-hidden="true"></span>
<div class="component__instruction-inner {{lowercase _component}}__instruction-inner">
{{{compile instruction}}}
</div>
</div>
{{/any}}
</div>
</div>
{{else}}
{{component_description}}
{{/any}}