- {{item.num}}.
+ {{item.num}}.
+
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/forum/components/index/index.html b/src/addons/mod/forum/components/index/index.html
index ee39d41a5..620db067f 100644
--- a/src/addons/mod/forum/components/index/index.html
+++ b/src/addons/mod/forum/components/index/index.html
@@ -3,11 +3,20 @@
+
+ @if (!courseContentsPage) {
+
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html b/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html
index f75438025..eb7ff23a4 100644
--- a/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html
+++ b/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html
@@ -9,9 +9,16 @@
-
+ @if (!courseContentsPage) {
+
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/h5pactivity/components/index/addon-mod-h5pactivity-index.html b/src/addons/mod/h5pactivity/components/index/addon-mod-h5pactivity-index.html
index a7bd968e5..fbff14346 100644
--- a/src/addons/mod/h5pactivity/components/index/addon-mod-h5pactivity-index.html
+++ b/src/addons/mod/h5pactivity/components/index/addon-mod-h5pactivity-index.html
@@ -6,11 +6,18 @@
iconAction="fas-chart-bar" />
+
+ @if (courseContentsPage) {
+
+ }
+ @if (!courseContentsPage) {
+ }
diff --git a/src/addons/mod/imscp/components/index/addon-mod-imscp-index.html b/src/addons/mod/imscp/components/index/addon-mod-imscp-index.html
index 411d6f487..d01c4c51e 100644
--- a/src/addons/mod/imscp/components/index/addon-mod-imscp-index.html
+++ b/src/addons/mod/imscp/components/index/addon-mod-imscp-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html b/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html
index 6478c5c9f..68527e6d0 100644
--- a/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html
+++ b/src/addons/mod/lesson/components/index/addon-mod-lesson-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/lti/components/index/addon-mod-lti-index.html b/src/addons/mod/lti/components/index/addon-mod-lti-index.html
index 6afba2a86..08debe149 100644
--- a/src/addons/mod/lti/components/index/addon-mod-lti-index.html
+++ b/src/addons/mod/lti/components/index/addon-mod-lti-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/page/components/index/addon-mod-page-index.html b/src/addons/mod/page/components/index/addon-mod-page-index.html
index d6978007d..a8eaf4b32 100644
--- a/src/addons/mod/page/components/index/addon-mod-page-index.html
+++ b/src/addons/mod/page/components/index/addon-mod-page-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/quiz/components/index/addon-mod-quiz-index.html b/src/addons/mod/quiz/components/index/addon-mod-quiz-index.html
index 6af2017bd..4f98bd36d 100644
--- a/src/addons/mod/quiz/components/index/addon-mod-quiz-index.html
+++ b/src/addons/mod/quiz/components/index/addon-mod-quiz-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/resource/components/index/addon-mod-resource-index.html b/src/addons/mod/resource/components/index/addon-mod-resource-index.html
index 0a0419d87..5b2a6eb01 100644
--- a/src/addons/mod/resource/components/index/addon-mod-resource-index.html
+++ b/src/addons/mod/resource/components/index/addon-mod-resource-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/scorm/components/index/addon-mod-scorm-index.html b/src/addons/mod/scorm/components/index/addon-mod-scorm-index.html
index ca8b6b3ba..04219dfbc 100644
--- a/src/addons/mod/scorm/components/index/addon-mod-scorm-index.html
+++ b/src/addons/mod/scorm/components/index/addon-mod-scorm-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/survey/components/index/addon-mod-survey-index.html b/src/addons/mod/survey/components/index/addon-mod-survey-index.html
index e5abcb1e9..89f179c69 100644
--- a/src/addons/mod/survey/components/index/addon-mod-survey-index.html
+++ b/src/addons/mod/survey/components/index/addon-mod-survey-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/url/components/index/addon-mod-url-index.html b/src/addons/mod/url/components/index/addon-mod-url-index.html
index a52ce9833..053903639 100644
--- a/src/addons/mod/url/components/index/addon-mod-url-index.html
+++ b/src/addons/mod/url/components/index/addon-mod-url-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/addons/mod/wiki/components/index/addon-mod-wiki-index.html b/src/addons/mod/wiki/components/index/addon-mod-wiki-index.html
index c5d6010f8..fbd9d7e5c 100644
--- a/src/addons/mod/wiki/components/index/addon-mod-wiki-index.html
+++ b/src/addons/mod/wiki/components/index/addon-mod-wiki-index.html
@@ -17,11 +17,18 @@
iconAction="fas-pen" (action)="goToEditPage()" />
+
+ @if (courseContentsPage) {
+
+ }
+ @if (!courseContentsPage) {
+ }
diff --git a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html
index 43879cde8..46319c337 100644
--- a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html
+++ b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html
@@ -1,8 +1,15 @@
+ @if (!courseContentsPage) {
+ } @else {
+
+
+
+ }
diff --git a/src/core/features/course/pages/index/index.html b/src/core/features/course/pages/index/index.html
index 8fabef12e..4699bdada 100644
--- a/src/core/features/course/pages/index/index.html
+++ b/src/core/features/course/pages/index/index.html
@@ -10,11 +10,19 @@
+ @if (course?.format !== 'singleactivity') {
+
+ } @else {
+
+
+
+ }
diff --git a/src/core/features/siteplugins/components/module-index/core-siteplugins-module-index.html b/src/core/features/siteplugins/components/module-index/core-siteplugins-module-index.html
index cee8e615e..f7c968dd4 100644
--- a/src/core/features/siteplugins/components/module-index/core-siteplugins-module-index.html
+++ b/src/core/features/siteplugins/components/module-index/core-siteplugins-module-index.html
@@ -1,8 +1,15 @@
-
+ @if (!courseContentsPage) {
+
+ } @else {
+
+
+
+ }
diff --git a/src/core/features/siteplugins/components/module-index/module-index.ts b/src/core/features/siteplugins/components/module-index/module-index.ts
index 49f51aca9..8e8704030 100644
--- a/src/core/features/siteplugins/components/module-index/module-index.ts
+++ b/src/core/features/siteplugins/components/module-index/module-index.ts
@@ -12,10 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-import { Component, OnInit, OnDestroy, Input, ViewChild, HostBinding } from '@angular/core';
+import { Component, OnInit, OnDestroy, Input, ViewChild, HostBinding, Optional } from '@angular/core';
import { CoreSiteWSPreSets } from '@classes/sites/authenticated-site';
import { CoreCourseModuleSummaryResult } from '@features/course/components/module-summary/module-summary';
+import { CoreCourseContentsPage } from '@features/course/pages/contents/contents';
import { CoreCourse } from '@features/course/services/course';
import { CoreCourseModuleData } from '@features/course/services/course-helper';
import {
@@ -71,6 +72,8 @@ export class CoreSitePluginsModuleIndexComponent implements OnInit, OnDestroy, C
jsData?: Record; // Data to pass to the component.
+ constructor(@Optional() public courseContentsPage?: CoreCourseContentsPage) {}
+
/**
* @inheritdoc
*/