From 1d51343bc819ec19a593e224f61245b3b0f639b1 Mon Sep 17 00:00:00 2001 From: mrw1593 Date: Sun, 18 Jun 2023 18:56:38 -0400 Subject: error page --- static/languages/en.ini | 10 ++++++++++ static/templates/base.html | 2 +- static/templates/error.html | 7 +++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 static/templates/error.html (limited to 'static') diff --git a/static/languages/en.ini b/static/languages/en.ini index 1848a7d..e926ec0 100644 --- a/static/languages/en.ini +++ b/static/languages/en.ini @@ -4,3 +4,13 @@ usernamePlaceholder = Enter your username passwordLabel = Password passwordPlaceholder = Enter your password loginSubmitButton = Log In + +errorTitle = Error +errorHeader_invalidRequest = Invalid Request +errorMessage_invalidRequest = The client sent a bad request. +errorHeader_clientNotFound = Client Not Found +errorMessage_clientNotFound = The client gave an incorrect ID, so we cannot redirect to it. +errorHeader_missingRedirectUri = Missing Redirect URI +errorMessage_missingRedirectUri = There are many redirect URIs for the client, but the client did not specify which one to use. +errorHeader_invalidRedirectUri = Invalid Redirect URI +errorMessage_invalidRedirectUri = The client provided a redirect URI that it is not allowed to redirect to. diff --git a/static/templates/base.html b/static/templates/base.html index fe4875e..021f95e 100644 --- a/static/templates/base.html +++ b/static/templates/base.html @@ -10,7 +10,7 @@ {% block content %}{% endblock content %} diff --git a/static/templates/error.html b/static/templates/error.html new file mode 100644 index 0000000..4fbe87f --- /dev/null +++ b/static/templates/error.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} +{% block title %}{{ msg(key="errorTitle") }}{% endblock title %} + +{% block content %} +

{{ msg(key=errorHeader) }}

+

{{ msg(key=errorMessage) }}

+{% endblock content %} -- cgit v1.2.3