forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements a 403 error page (hedyorg#1344)
* creates 403 html page * creates 403 jpg image * updates 403 error redirection in website\teacher.py * Adds class retrieval error message Co-authored-by: Felienne <[email protected]>
- Loading branch information
Showing
7 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ ui: | |
commands_title: "Commands" | ||
by: "by" | ||
start_quiz: "Start quiz" | ||
default_403: "Looks like you aren't authorized..." | ||
default_404: "We could not find that page..." | ||
default_500: "Something went wrong..." | ||
go_back_to_main: "Go back to the main page" | ||
|
@@ -41,6 +42,9 @@ ui: | |
no_such_program: "No such Hedy program!" | ||
invalid_teacher_invitation_code: "The teacher invitation code is invalid. To become a teacher, reach out to [email protected]." | ||
page_not_found: "We could not find that page!" | ||
not_teacher: "Looks like you are not a teacher!" | ||
not_enrolled: "Looks like you are not in this class!" | ||
retrieve_class: "Only teachers can retrieve classes" | ||
ClientErrorMessages: | ||
Transpile_success: | ||
- "Good job!" | ||
|
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 |
---|---|---|
|
@@ -30,7 +30,20 @@ ui: | |
commands_title: "Commando's" | ||
by: "door" | ||
start_quiz: "Naar de quiz" | ||
default_403: "Jij mag niet bij deze pagina" | ||
default_404: "We konden deze pagina niet vinden" | ||
default_500: "Oeps! Er ging iets mis..." | ||
go_back_to_main: "Ga terug naar de hoofdpagina" | ||
no_such_level: "Dit level bestaat niet!" | ||
no_such_class: "Deze klas bestaat niet!" | ||
invalid_class_link: "Ongeldige klassenlink" | ||
no_such_adventure: "Dit avontuur bestaat niet" | ||
no_such_adventure_level: "Dit level bestaat niet in dit avontuur" | ||
no_such_program: "Dit programma bestaat niet!" | ||
invalid_teacher_invitation_code: "Deze leerkrachtenuitnodigingscode is niet geldig. Als je een nieuwe uitnodiging nodig hebt, neem dan contact op met [email protected]" | ||
not_teacher: "Jij bent geen leraar!" | ||
not_enrolled: "Jij zit niet in deze klas!" | ||
retrieve_class: "Alleen leerkrachten mogen klassen openen" | ||
page_not_found: "We konden deze pagina niet vinden!" | ||
ClientErrorMessages: | ||
Transpile_success: | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,7 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block body %} | ||
<div class="w-full text-center"><img class="inline-block" src="/images/403.jpg" style="width: 40%;"></div> | ||
<div class="w-full text-center"><p class="text-lg font-bold">{{page_error or ui.default_403}}</p></div> | ||
<div class="w-full text-center mt-8"><button class="green-btn" style="width: 40%;" onclick="window.location.href = '{{localize_link ('/')}}'">{{ui.go_back_to_main}}</button></div> | ||
{% endblock %} |
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
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