Skip to content

Commit

Permalink
MDL-73879 core_courseformat: Remove lock next to section name
Browse files Browse the repository at this point in the history
* Remove the lock icon when section is not available next to section
name
  • Loading branch information
laurentdavid committed Jun 18, 2024
1 parent 2bf886f commit fb4d42d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion course/format/classes/output/local/content/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ protected function add_cm_data(stdClass &$data, renderer_base $output): bool {
protected function add_availability_data(stdClass &$data, renderer_base $output): bool {
$availability = new $this->availabilityclass($this->format, $this->section);
$data->availability = $availability->export_for_template($output);
$data->restrictionlock = !empty($this->section->availableinfo);
$data->hasavailability = $availability->has_availability($output);
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@
{{> core_courseformat/local/content/section/header }}
{{/ core_courseformat/local/content/section/header }}
{{/header}}
{{#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

0 comments on commit fb4d42d

Please sign in to comment.