diff --git a/scripts/langindex.json b/scripts/langindex.json index 93ec25362..a75f1e41f 100644 --- a/scripts/langindex.json +++ b/scripts/langindex.json @@ -40,6 +40,7 @@ "addon.block_learningplans.pluginname": "block_lp", "addon.block_myoverview.all": "block_myoverview", "addon.block_myoverview.allincludinghidden": "block_myoverview", + "addon.block_myoverview.browseallcourses": "local_moodlemobileapp", "addon.block_myoverview.card": "block_myoverview", "addon.block_myoverview.favourites": "block_myoverview", "addon.block_myoverview.future": "block_myoverview", @@ -47,7 +48,10 @@ "addon.block_myoverview.inprogress": "block_myoverview", "addon.block_myoverview.lastaccessed": "block_myoverview", "addon.block_myoverview.list": "block_myoverview", - "addon.block_myoverview.nocourses": "moodle", + "addon.block_myoverview.nocoursesenrolled": "local_moodlemobileapp", + "addon.block_myoverview.nocoursesenrolleddescription": "local_moodlemobileapp", + "addon.block_myoverview.noresult": "local_moodlemobileapp", + "addon.block_myoverview.noresultdescription": "local_moodlemobileapp", "addon.block_myoverview.past": "block_myoverview", "addon.block_myoverview.pluginname": "block_myoverview", "addon.block_myoverview.shortname": "block_myoverview", diff --git a/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html b/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html index d4328e235..233d107de 100644 --- a/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html +++ b/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html @@ -99,13 +99,26 @@ - - - - {{'core.courses.searchcourses' | translate}} - + +

+ {{'addon.block_myoverview.noresult' | translate}} +

+

+ {{'addon.block_myoverview.nocoursesenrolled' | translate}} +

+ +

+ {{'addon.block_myoverview.noresultdescription' | translate}} +

+

+ {{'addon.block_myoverview.nocoursesenrolleddescription' | translate}} +

+ + + {{'addon.block_myoverview.browseallcourses' | translate}} + +
diff --git a/src/addons/block/myoverview/components/myoverview/myoverview.scss b/src/addons/block/myoverview/components/myoverview/myoverview.scss index 2c09ff1e8..37df6ca93 100644 --- a/src/addons/block/myoverview/components/myoverview/myoverview.scss +++ b/src/addons/block/myoverview/components/myoverview/myoverview.scss @@ -34,4 +34,15 @@ } } + core-empty-box { + .item-heading { + font-weight: bold; + margin-bottom: 0; + font-size: 16px; + } + + .subdued { + color: var(--subdued-text-color); + } + } } diff --git a/src/addons/block/myoverview/lang.json b/src/addons/block/myoverview/lang.json index 40c94300b..c2180cc2c 100644 --- a/src/addons/block/myoverview/lang.json +++ b/src/addons/block/myoverview/lang.json @@ -1,6 +1,7 @@ { "all": "All", "allincludinghidden": "All (including archived)", + "browseallcourses": "Browse all courses", "card": "Card", "favourites": "Starred", "future": "Future", @@ -8,7 +9,10 @@ "inprogress": "In progress", "lastaccessed": "Last accessed", "list": "List", - "nocourses": "No courses", + "nocoursesenrolled": "You're not enrolled in any courses yet.", + "nocoursesenrolleddescription": "Browse all available courses below and start learning.", + "noresult": "Your search didn't match any courses.", + "noresultdescription": "Try adjusting your filters or browse all courses below.", "past": "Past", "pluginname": "Course overview", "shortname": "Short name",