From ed11c23c814d34c7529ec2f1de85b00f1777ed70 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 18 Jul 2024 11:10:55 +0200 Subject: [PATCH] Mobile app: Use module-info instead of module-description --- classes/output/mobile.php | 1 + templates/mobile_view_latest.mustache | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/classes/output/mobile.php b/classes/output/mobile.php index 23352bb..40c20f5 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -92,6 +92,7 @@ public static function main_view($args) { 'currentgrade' => $currentgrade, 'hasgrade' => isset($currentgrade), 'warning' => $warning, + 'canusemoduleinfo' => $args->appversioncode >= 44000, ]; return [ diff --git a/templates/mobile_view_latest.mustache b/templates/mobile_view_latest.mustache index 54b03b1..0be1b75 100644 --- a/templates/mobile_view_latest.mustache +++ b/templates/mobile_view_latest.mustache @@ -60,11 +60,22 @@ {{=<% %>=}}
- - + <%#canusemoduleinfo%> + + + <%/canusemoduleinfo%> + <%^canusemoduleinfo%> + + + <%/canusemoduleinfo%> <%# warning %>