From 24d4d672813431f7383c616c0f67e87f377c5daf Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 7 Apr 2016 10:40:41 +0200 Subject: [PATCH] MOBILE-1518 course: Show title and descr in all sections if only 1 sec --- www/core/components/course/controllers/section.js | 1 + www/core/components/course/templates/section.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/core/components/course/controllers/section.js b/www/core/components/course/controllers/section.js index cb795bf6d35..be89e320377 100644 --- a/www/core/components/course/controllers/section.js +++ b/www/core/components/course/controllers/section.js @@ -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). diff --git a/www/core/components/course/templates/section.html b/www/core/components/course/templates/section.html index f600cd22b9c..12c1c930480 100644 --- a/www/core/components/course/templates/section.html +++ b/www/core/components/course/templates/section.html @@ -14,11 +14,11 @@
-
+

{{ section.name }}

-
+
{{ section.summary }}