Skip to content

Commit

Permalink
Use standard Moodle section restriction behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
james-cnz committed Nov 14, 2024
1 parent 9ef67ac commit ea02edb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
5 changes: 0 additions & 5 deletions templates/local/content/section.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@
data-id="{{id}}"
data-number="{{num}}"
>
{{#restrictionlock}}
<div class="align-self-center ml-2">
{{#pix}}t/unlock, core{{/pix}}
</div>
{{/restrictionlock}}
<div data-region="sectionbadges" class="sectionbadges d-flex align-items-center">
{{$ core_courseformat/local/content/section/badges }}
{{> core_courseformat/local/content/section/badges }}
Expand Down
11 changes: 3 additions & 8 deletions templates/local/content/section/content.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@
"highlightedlabel" : "Highlighted"
}
}}
{{#restrictionlock}}
<div class="align-self-center ml-2">
{{#pix}}t/unlock, core{{/pix}}
</div>
{{/restrictionlock}}
{{#collapsemenu}}
{{^displayonesection}}
<div class="flex-fill d-flex justify-content-end mr-2 align-self-start mt-2">
Expand Down Expand Up @@ -117,9 +112,9 @@
{{/ core_courseformat/local/content/section/summary }}
{{/summary}}
{{#availability}}
{{$ format_onetopic/courseformat/content/cm/availabilityinline }}
{{> format_onetopic/courseformat/content/cm/availabilityinline }}
{{/ format_onetopic/courseformat/content/cm/availabilityinline }}
{{$ core_courseformat/local/content/section/availability }}
{{> core_courseformat/local/content/section/availability }}
{{/ core_courseformat/local/content/section/availability }}
{{/availability}}
</div>
{{#cmsummary}}
Expand Down

0 comments on commit ea02edb

Please sign in to comment.