Skip to content

Commit ca235a9

Browse files
committed
Update Mustache templates for Moodle 5.0 partial revert 2
1 parent 4218f22 commit ca235a9

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

templates/courseformat/content.mustache

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,23 @@
139139
{{/ core_courseformat/local/content/section }}
140140
{{/sections}}
141141
</ul>
142+
{{#singlesection}}
143+
<div class="single-section">
142144

143-
{{#numsections}}
145+
<ul class="{{format}} section-list sections topics">
146+
{{$ core_courseformat/local/content/section }}
147+
{{> core_courseformat/local/content/section }}
148+
{{/ core_courseformat/local/content/section }}
149+
</ul>
144150

151+
</div>
152+
{{/singlesection}}
153+
{{#numsections}}
154+
{{^singlesection}}
145155
{{$ core_courseformat/local/content/addsection}}
146156
{{> format_multitopic/courseformat/content/addsection}}
147157
{{/ core_courseformat/local/content/addsection}}
148-
158+
{{/singlesection}}
149159
{{/numsections}}
150160
{{#bulkedittools}}
151161
{{$ core_courseformat/local/content/bulkedittools}}

0 commit comments

Comments
 (0)