Skip to content

Commit

Permalink
Merge pull request #602 from dpalou/ionic7
Browse files Browse the repository at this point in the history
Mobile app: Use module-info instead of module-description
  • Loading branch information
jrchamp authored Jul 25, 2024
2 parents 3dc2c53 + 11725a2 commit 7d24738
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions classes/output/mobile.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public static function mobile_course_view($args) {
'option_audio' => $optionaudio,
'cmid' => $cm->id,
'courseid' => $args->courseid,
'canusemoduleinfo' => $args->appversioncode >= 44000,
];

return [
Expand Down
8 changes: 7 additions & 1 deletion templates/mobile_view_page_latest.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@
}}
{{=<% %>=}}
<div>
<core-course-module-description description="<% zoom.intro %>" component="mod_zoom" componentId="<% cmid %>"></core-course-module-description>
<%#canusemoduleinfo%>
<core-course-module-info [module]="module" description="<% zoom.intro %>" component="mod_zoom" componentId="<% cmid %>" [courseId]="courseId">
</core-course-module-info>
<%/canusemoduleinfo%>
<%^canusemoduleinfo%>
<core-course-module-description description="<% zoom.intro %>" component="mod_zoom" componentId="<% cmid %>"></core-course-module-description>
<%/canusemoduleinfo%>

<ion-list>
<%#available%>
Expand Down

0 comments on commit 7d24738

Please sign in to comment.