Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also adds an error message for when a launch request seems to come from SEB, but with no session parameters. This happens when you launch SEB using a previously-set config, but not from the link which includes the session key and resource link ID in query params, or if the SEB settings file doesn't have "allow query params" turned on.
- Loading branch information
1 parent
6b4ab78
commit d90098f
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
numbas_lti/templates/numbas_lti/launch_errors/seb_launch_without_params.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "numbas_lti/base.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<header> | ||
<h1>{% translate "Invalid Safe Exam Browser launch" %}</h1> | ||
</header> | ||
<main> | ||
<p>{% blocktranslate %}You have opened Safe Exam Browser, but it hasn't said which resource it wants to load.{% endblocktranslate %}</p> | ||
<p>{% blocktranslate %}This can happen if you open Safe Exam Browser and it uses a previously-set configuration. If that's the case, please close Safe Exam Browser now.{% endblocktranslate %}</p> | ||
<p><a class="btn btn-lg btn-primary" href="{% url 'seb_quit' %}">Quit Safe Exam Browser</a></p> | ||
</main> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters