File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
www/core/components/course Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ angular.module('mm.core.course')
4040 $scope . title = $translate . instant ( 'mm.course.allsections' ) ;
4141 }
4242 $scope . summary = null ;
43+ $scope . allSections = true ;
4344 }
4445
4546 // Convenience function to fetch section(s).
Original file line number Diff line number Diff line change 1414
1515 < section class ="card " ng-repeat ="section in sections " ng-if ="section.modules.length > 0 || section.summary != '' ">
1616 <!-- Title and summary are displayed when multiple sections per page. -->
17- < div class ="item item-divider " ng-if ="sections.length > 1 ">
17+ < div class ="item item-divider " ng-if ="allSections ">
1818 < h2 > < mm-format-text watch ="true "> {{ section.name }}</ mm-format-text > </ h2 >
1919 </ div >
2020
21- < div class ="item item-text-wrap " ng-if ="sections.length > 1 && section.summary ">
21+ < div class ="item item-text-wrap " ng-if ="allSections && section.summary ">
2222 < mm-format-text class ="mm-content-with-float "> {{ section.summary }}</ mm-format-text >
2323 </ div >
2424
You can’t perform that action at this time.
0 commit comments