Skip to content

Commit 07a6b8a

Browse files
committed
MOBILE-1585 course: Hide empty topics in the sections menu
1 parent cab4dce commit 07a6b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/core/components/course/templates/sections.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ion-refresher on-refresh="doRefresh()" pulling-text="{{ 'mm.core.pulltorefresh' | translate }}" ng-if="sectionsLoaded"></ion-refresher>
66
<mm-loading hide-until="sectionsLoaded">
77
<ul class="list">
8-
<li ng-repeat="section in sections">
8+
<li ng-repeat="section in sections" ng-if="section.modules.length > 0 || section.summary != ''">
99
<a class="item item-text-wrap item-button-right" mm-split-view-link="site.mm_course-section({cid: courseId, sectionid: section.id, mid: moduleId})" title="{{section.name}}">
1010
<mm-format-text watch="true">{{section.name}}</mm-format-text>
1111

0 commit comments

Comments
 (0)