Skip to content

Commit 7a16937

Browse files
authored
Merge pull request #3889 from ccnmtl/lti-launch
Add LTI Launch template
2 parents 651dd45 + d24ab97 commit 7a16937

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

econplayground/lti/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class LTI1p3LaunchView(LtiLaunchBaseView, TemplateView):
8787
"""
8888
https://github.com/academic-innovation/django-lti/blob/main/README.md#handling-an-lti-launch
8989
"""
90-
template_name = 'lti_auth/landing_page.html'
90+
template_name = 'lti/landing_page.html'
9191

9292
def get_context_data(self, **kwargs):
9393
domain = self.request.get_host()
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{% load static %}
2+
3+
<!DOCTYPE html>
4+
<html>
5+
<head>
6+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-SgOJa3DmI69IUzQ2PVdRZhwQ+dy64/BUtbMJw1MZ8t5HZApcHrRKUc4W0kG879m7" crossorigin="anonymous">
7+
8+
<link href="{% static 'css/main.css' %}" rel="stylesheet">
9+
<link href="{% static 'css/splash.css' %}" rel="stylesheet">
10+
</head>
11+
<body class="lti-landing">
12+
<header>
13+
<!-- Fixed navbar -->
14+
<nav class="navbar navbar-expand-lg navbar-dark">
15+
<div class="container-fluid">
16+
<img src="{% static 'img/logo-econpractice.svg' %}" width="200" height="39.78" alt="EconPractice logo" />
17+
</div>
18+
</nav>
19+
</header>
20+
21+
<div class="container-fluid">
22+
<div class="text-center">
23+
<a href="{{landing_url}}"
24+
target="_blank"
25+
class="btn btn-primary btn-lg mt-4">
26+
Launch EconPractice
27+
</a>
28+
</div>
29+
</div>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)