diff --git a/classes/output/mobile.php b/classes/output/mobile.php
index 3508e9f..5c45db0 100644
--- a/classes/output/mobile.php
+++ b/classes/output/mobile.php
@@ -47,7 +47,6 @@ public static function main_view($args) {
global $OUTPUT, $USER, $DB;
$args = (object) $args;
- $versionname = $args->appversioncode >= 3950 ? 'latest' : 'ionic3';
$cm = get_coursemodule_from_id('subcourse', $args->cmid);
$context = \context_module::instance($cm->id);
@@ -98,7 +97,7 @@ public static function main_view($args) {
'templates' => [
[
'id' => 'main',
- 'html' => $OUTPUT->render_from_template("mod_subcourse/mobile_view_$versionname", $data),
+ 'html' => $OUTPUT->render_from_template('mod_subcourse/mobile_view_latest', $data),
],
],
'javascript' => '',
diff --git a/templates/mobile_view_ionic3.mustache b/templates/mobile_view_ionic3.mustache
deleted file mode 100644
index 30998bc..0000000
--- a/templates/mobile_view_ionic3.mustache
+++ /dev/null
@@ -1,102 +0,0 @@
-{{!
- This file is part of Moodle - https://moodle.org/
-
- Moodle is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- Moodle is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Moodle. If not, see .
-}}
-{{!
- @template mod_subcourse/mobile_view
-
- Render the main view for the mobile app.
-
- Classes required for JS:
- * none
-
- Data attributes required for JS:
- * none
-
- Context variables required for this template:
- * cmid - [int] Course module identifier.
- * subcourse - [object]
- * subcourse.id - [int] Subcourse instance ID.
- * subcourse.intro - [string] Formatted activity description.
- * refcourse - [object]
- * refcourse.fullname - [string] Formatted referenced course name.
- * refcourse.url - [string] Referenced course view URL.
- * hasprogress - [bool] Is the progress value set (not null).
- * progress - [float] Percentual value of the progress in the referenced course.
- * hasgrade - [bool] Is the currentgrade value set (not null).
- * currentgrade - [string] Textual representation of the final grade in the referenced course.
- * warning - [string] Warning to be displayed to the user.
-
- Example context (json):
- {
- "cmid": 42,
- "subcourse": {
- "id": 24,
- "intro": "