1
1
{{ #let
2
2
@subsection.id
3
- (t (concat @sectionId " . " @subsection.id " .title" ))
4
- (t (concat @sectionId " . " @subsection.id " .description" ) htmlSafe =true )
3
+ (t (concat @sectionId ' . ' @subsection.id ' .title' ))
4
+ (t (concat @sectionId ' . ' @subsection.id ' .description' ) htmlSafe =true )
5
5
as |subsectionId subsectionTitle subsectionDescription |
6
6
}}
7
7
<section
8
- aria-labelledby =" {{ @sectionId }} __{{ subsectionId }} "
8
+ aria-labelledby =' {{ @sectionId }} __{{ subsectionId }} '
9
9
data-test-subsection ={{ subsectionTitle }}
10
10
>
11
- <div local-class =" title-container" >
11
+ <div local-class =' title-container' >
12
12
<h3
13
- data-test-field =" Subsection Title"
14
- id =" {{ @sectionId }} __{{ subsectionId }} "
15
- local-class =" title"
13
+ data-test-field =' Subsection Title'
14
+ id =' {{ @sectionId }} __{{ subsectionId }} '
15
+ local-class =' title'
16
16
>
17
17
{{ subsectionTitle }}
18
18
</h3 >
19
19
20
20
<a
21
- href =" #{{ @sectionId }} __{{ subsectionId }} "
22
- local-class =" permalink"
21
+ href =' #{{ @sectionId }} __{{ subsectionId }} '
22
+ local-class =' permalink'
23
23
title ={{ subsectionTitle }}
24
24
>
25
- {{ t " component.guide-section.section" }}
25
+ {{ t ' component.guide-section.section' }}
26
26
</a >
27
27
</div >
28
28
29
- <p
30
- data-test-field =" Subsection Description"
31
- local-class =" description"
32
- >
29
+ <p data-test-field =' Subsection Description' local-class =' description' >
33
30
{{ subsectionDescription }}
34
31
</p >
35
32
36
33
<ContainerQuery
37
- @features ={{ hash
38
- wide = (width min =900 )
39
- }}
40
- local-class =" code-examples-container"
34
+ @features ={{ hash wide = (width min =900 )}}
35
+ local-class =' code-examples-container'
41
36
>
42
- <div
43
- data-test-ember-classic
44
- local-class =" ember-classic"
45
- >
46
- <h4 local-class =" subtitle" >
47
- {{ t " component.guide-section.subsection.classic" }}
48
- </h4 >
37
+ {{ #if @subsection.classicFiles.length }}
38
+ <div data-test-ember-classic local-class =' ember-classic' >
39
+ <h4 local-class =' subtitle' >
40
+ {{ t ' component.guide-section.subsection.classic' }}
41
+ </h4 >
49
42
50
- {{ #each @subsection.classicFiles as |file |}}
51
- <div local-class =" code-snippet" >
52
- <CodeSnippet
53
- @fileName =" {{ @sectionId }} /{{ subsectionId }} /{{ file }} "
54
- />
55
- </div >
56
- {{ /each }}
43
+ {{ #each @subsection.classicFiles as |file |}}
44
+ <div local-class =' code-snippet' >
45
+ <CodeSnippet
46
+ @fileName =' {{ @sectionId }} /{{ subsectionId }} /{{ file }} '
47
+ />
48
+ </div >
49
+ {{ /each }}
57
50
58
- {{ #if @subsection.classicDescriptionKey }}
59
- <p data-test-general-text>
60
- {{ t @subsection.classicDescriptionKey htmlSafe =true }}
61
- </p >
62
- {{ /if }}
63
- </div >
51
+ {{ #if @subsection.classicDescriptionKey }}
52
+ <p data-test-general-text>
53
+ {{ t @subsection.classicDescriptionKey htmlSafe =true }}
54
+ </p >
55
+ {{ /if }}
56
+ </div >
64
57
65
- < div
66
- data-test-ember-octane
67
- local-class = " ember-octane "
68
- >
69
- <h4 local-class =" subtitle" >
70
- {{ t " component.guide-section.subsection.octane" }}
71
- </h4 >
58
+ {{ /if }}
59
+
60
+ {{ #if @subsection.octaneFiles.length }}
61
+ < div data-test-ember-octane local-class = ' ember-octane ' >
62
+ <h4 local-class =' subtitle' >
63
+ {{ t ' component.guide-section.subsection.octane' }}
64
+ </h4 >
72
65
73
- {{ #each @subsection.octaneFiles as |file |}}
74
- <div local-class =" code-snippet" >
75
- <CodeSnippet
76
- @fileName =" {{ @sectionId }} /{{ subsectionId }} /{{ file }} "
77
- />
78
- </div >
79
- {{ /each }}
66
+ {{ #each @subsection.octaneFiles as |file |}}
67
+ <div local-class =' code-snippet' >
68
+ <CodeSnippet
69
+ @fileName =' {{ @sectionId }} /{{ subsectionId }} /{{ file }} '
70
+ />
71
+ </div >
72
+ {{ /each }}
80
73
81
- {{ #if @subsection.octaneDescriptionKey }}
82
- <p data-test-general-text>
83
- {{ t @subsection.octaneDescriptionKey htmlSafe =true }}
84
- </p >
85
- {{ /if }}
86
- </div >
74
+ {{ #if @subsection.octaneDescriptionKey }}
75
+ <p data-test-general-text>
76
+ {{ t @subsection.octaneDescriptionKey htmlSafe =true }}
77
+ </p >
78
+ {{ /if }}
79
+ </div >
80
+ {{ /if }}
87
81
</ContainerQuery >
88
82
89
- <div local-class =" edit-link-container" >
83
+ <div local-class =' edit-link-container' >
90
84
<a
91
- data-test-link =" Edit Translation"
92
- href =" https://github.com/ember-learn/ember-data-request-service-cheat-sheet/edit/main/translations/{{ @sectionId }} /{{ subsectionId }} /{{ this.intl.locale }} .yaml"
93
- local-class =" edit-link"
94
- rel =" noopener noreferrer"
95
- target =" _blank"
85
+ data-test-link =' Edit Translation'
86
+ href =' https://github.com/ember-learn/ember-data-request-service-cheat-sheet/edit/main/translations/{{ @sectionId }} /{{ subsectionId }} /{{ this.intl.locale }} .yaml'
87
+ local-class =' edit-link'
88
+ rel =' noopener noreferrer'
89
+ target =' _blank'
96
90
>
97
- {{ t " component.guide-section.edit-translation-text" }}
91
+ {{ t ' component.guide-section.edit-translation-text' }}
98
92
</a >
99
93
</div >
100
94
</section >
101
- {{ /let }}
95
+ {{ /let }}
0 commit comments