Skip to content

Commit

Permalink
Merge pull request #200 from james-cnz/standard_section_restriction_b…
Browse files Browse the repository at this point in the history
…ehaviour

Use standard Moodle section restriction behaviour
  • Loading branch information
davidherney authored Jan 3, 2025
2 parents 9ef67ac + ea02edb commit fddf93c
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 fddf93c

Please sign in to comment.