Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions www/core/components/course/controllers/section.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ angular.module('mm.core.course')
$scope.title = $translate.instant('mm.course.allsections');
}
$scope.summary = null;
$scope.allSections = true;
}

// Convenience function to fetch section(s).
Expand Down
4 changes: 2 additions & 2 deletions www/core/components/course/templates/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

<section class="card" ng-repeat="section in sections" ng-if="section.modules.length > 0 || section.summary != ''">
<!-- Title and summary are displayed when multiple sections per page. -->
<div class="item item-divider" ng-if="sections.length > 1">
<div class="item item-divider" ng-if="allSections">
<h2><mm-format-text watch="true">{{ section.name }}</mm-format-text></h2>
</div>

<div class="item item-text-wrap" ng-if="sections.length > 1 && section.summary">
<div class="item item-text-wrap" ng-if="allSections && section.summary">
<mm-format-text class="mm-content-with-float">{{ section.summary }}</mm-format-text>
</div>

Expand Down