-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
navbar.html
201 lines (193 loc) · 10.8 KB
/
navbar.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!-- START: inst/pkgdown/templates/navbar.html -->
<div id="sidebar-col" class="col-lg-4{{#overview}} overview-sidebar{{/overview}}">
<div id="sidebar" class="sidebar">
<nav aria-labelledby="flush-headingEleven">
<button role="button" aria-label="{{ translate.CloseMenu }}" alt="{{ translate.CloseMenu }}" aria-expanded="true" aria-controls="sidebar" class="collapse-toggle" data-collapse="{{ translate.Collapse }} " data-episodes="{{ translate.Episodes }} ">
<i class="search-icon" data-feather="x" role="img"></i>
</button>
<div class="sidebar-inner">
<div class="row mobile-row" id="theme-row-mobile">
<div class="col" id="theme-selector">
<li class="nav-item dropdown" id="theme-button-list">
<button class="btn btn-link nav-link px-0 px-lg-2 dropdown-toggle d-flex align-items-center"
id="bd-theme"
type="button"
aria-expanded="false"
data-bs-toggle="dropdown"
data-bs-display="static"
aria-label="Toggle theme (auto)">
<svg class="bi my-1 theme-icon-active"><use href="#circle-half"></use></svg>
<span class="d-lg-none ms-1" id="bd-theme-text">Toggle Theme</span>
</button>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="bd-theme-text">
<li>
<button type="button" class="btn dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false">
<svg class="bi me-2 theme-icon"><use href="#sun-fill"></use></svg>
Light
<svg class="bi ms-auto d-none"><use href="#check2"></use></svg>
</button>
</li>
<li>
<button type="button" class="btn dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false">
<svg class="bi me-2 theme-icon"><use href="#moon-stars-fill"></use></svg>
Dark
<svg class="bi ms-auto d-none"><use href="#check2"></use></svg>
</button>
</li>
<li>
<button type="button" class="btn dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true">
<svg class="bi me-2 theme-icon"><use href="#circle-half"></use></svg>
Auto
<svg class="bi ms-auto d-none"><use href="#check2"></use></svg>
</button>
</li>
</ul>
</li>
</div>
</div>
<div class="row mobile-row">
<div class="col">
<div class="sidenav-view-selector">
<div class="accordion accordion-flush" id="accordionFlush9">
<div class="accordion-item">
{{#instructor}}
<h2 class="accordion-header" id="flush-headingNine">
<button class="accordion-button collapsed" id="instructor" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseNine" aria-expanded="false" aria-controls="flush-collapseNine">
<i id="eye" aria-hidden="true" class="icon" data-feather="eye"></i> {{ translate.InstructorView }}
</button>
</h2>
<div id="flush-collapseNine" class="accordion-collapse collapse" aria-labelledby="flush-headingNine" data-bs-parent="#accordionFlush2">
<div class="accordion-body">
<a href="../{{this_page}}">{{ translate.LearnerView }}</a>
</div>
</div>
{{/instructor}}
{{^instructor}}
<h2 class="accordion-header" id="flush-headingNine">
<button class="accordion-button collapsed" id="instructor" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseNine" aria-expanded="false" aria-controls="flush-collapseNine">
<i id="eye" aria-hidden="true" class="icon" data-feather="eye"></i> {{ translate.LearnerView }}
</button>
</h2>
<div id="flush-collapseNine" class="accordion-collapse collapse" aria-labelledby="flush-headingNine" data-bs-parent="#accordionFlush2">
<div class="accordion-body">
<a href="instructor/{{this_page}}">{{ translate.InstructorView }}</a>
</div>
</div>
{{/instructor}}
</div><!--/div.accordion-item-->
</div><!--/div.accordion-flush-->
</div><!--div.sidenav-view-selector -->
</div><!--/div.col -->
{{#yaml}}{{#language}}
<div class="col">
<div class="sidenav-language-selector">
<div class="accordion accordion-flush" id="accordionFlush10">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingTen">
<button class="accordion-button side-language collapsed" id="language" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseTen" aria-expanded="false" aria-controls="flush-collapseTen">English (US)
</button>
</h2>
<div id="flush-collapseTen" class="accordion-collapse collapse" aria-labelledby="flush-headingNine" data-bs-parent="#accordionFlush2">
<div class="accordion-body">
<a href="#">French</a>
</div>
</div>
</div><!--/div.accordion-item-->
</div><!--/div.accordion-flush-->
</div><!--/div.sidenav-language-selector -->
</div><!--/div.col -->
{{/language}}{{/yaml}}
<hr/>
</div><!--/div.mobile-row -->
<div class="accordion accordion-flush" id="accordionFlush11">
{{^overview}}
<div class="accordion-item">
<button id="chapters" class="accordion-button show" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseEleven" aria-expanded="false" aria-controls="flush-collapseEleven">
<h2 class="accordion-header chapters" id="flush-headingEleven">
{{ translate.EPISODES }}
</h2>
</button>
<div id="flush-collapseEleven" class="accordion-collapse show collapse" aria-labelledby="flush-headingEleven" data-bs-parent="#accordionFlush11">
<div class="accordion-body">
{{{ sidebar }}}
</div>
</div>
</div>
{{/overview}}
{{#overview}}
<a href="index.html">{{ translate.Home }}</a>
{{/overview}}
<hr class="half-width"/>
{{#resources}}
<div class="accordion accordion-flush lesson-resources" id="accordionFlush12">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingTwelve">
<button class="accordion-button {{^overview}}collapsed{{/overview}}{{#overview}}show{{/overview}}" id="lesson-resources" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseTwelve" aria-expanded="false" aria-controls="flush-collapseTwelve">
{{ translate.RESOURCES }}
</button>
</h2>
<div id="flush-collapseTwelve" class="accordion-collapse {{#overview}}show {{/overview}}collapse" aria-labelledby="flush-headingTwelve" data-bs-parent="#accordionFlush12">
<div class="accordion-body">
<ul>
{{#overview}}
{{! We want to include a setup link prominently in the resources for overview pages }}
<li>
{{! NOTE: the reason why we do not use the site root here is because we would need to set the site context _before_ overview }}
<a href="index.html#setup">{{ translate.Setup }}</a>
</li>
{{/overview}}
{{#instructor}}
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/key-points.html">{{ translate.KeyPoints }}</a>
</li>
{{/overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/instructor-notes.html">{{ translate.InstructorNotes }}</a>
</li>
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}instructor/images.html">{{ translate.ExtractAllImages }}</a>
</li>
{{/overview}}
{{/instructor}}
{{^instructor}}
{{^overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}key-points.html">{{ translate.KeyPoints }}</a>
</li>
{{/overview}}
<li>
<a href="{{#site}}{{root}}{{/site}}reference.html#glossary">{{ translate.Glossary }}</a>
</li>
<li>
<a href="{{#site}}{{root}}{{/site}}profiles.html">{{ translate.LearnerProfiles }}</a>
</li>
{{/instructor}}
{{{resources}}}
</ul>
</div>
</div>
</div>
</div>
<hr class="half-width lesson-resources"/>
{{/resources}}
{{^overview}}{{#aio}}
<a href="{{#site}}{{root}}{{/site}}{{#instructor}}instructor/{{/instructor}}aio.html">{{ translate.AIO }}</a>
{{/aio}}{{/overview}}
<hr class="d-none d-sm-block d-md-none"/>
<div class="d-grid gap-1">
{{#yaml}}{{#handout}}
<form method="get" action="{{#site}}{{root}}{{/site}}{{handout}}">
<button action="submit" class="btn btn-primary-outline">{{ translate.DownloadHandout }}</button>
</form>
<!-- TODO: Generate Slides -->
<!-- <button class="btn btn-primary-outline">{{ translate.ExportSlides }}</button> -->
{{/handout}}{{/yaml}}
</div>
</div><!-- /div.accordion -->
</div><!-- /div.sidebar-inner -->
</nav>
</div><!-- /div.sidebar -->
</div><!-- /div.sidebar-col -->
<!-- END: inst/pkgdown/templates/navbar.html-->