+
+
+
+
+
+
+ {{ 'addon.mod_lti.launchactivity' | translate }}
+
+
+
diff --git a/src/addons/mod/lti/components/index/index.ts b/src/addons/mod/lti/components/index/index.ts
new file mode 100644
index 000000000..f18244c01
--- /dev/null
+++ b/src/addons/mod/lti/components/index/index.ts
@@ -0,0 +1,90 @@
+// (C) Copyright 2015 Moodle Pty Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import { Component, Optional, OnInit } from '@angular/core';
+import { IonContent } from '@ionic/angular';
+
+import { CoreCourseModuleMainActivityComponent } from '@features/course/classes/main-activity-component';
+import { CoreCourseContentsPage } from '@features/course/pages/contents/contents';
+import { AddonModLti, AddonModLtiLti, AddonModLtiProvider } from '../../services/lti';
+import { AddonModLtiHelper } from '../../services/lti-helper';
+
+/**
+ * Component that displays an LTI entry page.
+ */
+@Component({
+ selector: 'addon-mod-lti-index',
+ templateUrl: 'addon-mod-lti-index.html',
+})
+export class AddonModLtiIndexComponent extends CoreCourseModuleMainActivityComponent implements OnInit {
+
+ component = AddonModLtiProvider.COMPONENT;
+ moduleName = 'lti';
+
+ lti?: AddonModLtiLti; // The LTI object.
+
+ protected fetchContentDefaultError = 'addon.mod_lti.errorgetlti';
+
+ constructor(
+ protected content?: IonContent,
+ @Optional() courseContentsPage?: CoreCourseContentsPage,
+ ) {
+ super('AddonModLtiIndexComponent', content, courseContentsPage);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ async ngOnInit(): Promise