From 42676b4c624a533391496b992cc29023f1632238 Mon Sep 17 00:00:00 2001 From: Duarte Miranda Date: Thu, 23 Jan 2025 16:24:39 +0000 Subject: [PATCH] Adds error 404 and 403 pages to base-theme Relates with: --- RELEASE_NOTES | 2 + .../ULisboaThemeResources_en.properties | 9 +- .../ULisboaThemeResources_pt.properties | 11 ++- .../src/main/webapp/themes/ulisboa/403.html | 98 +++++++++++++++++++ .../src/main/webapp/themes/ulisboa/404.html | 97 ++++++++++++++++++ 5 files changed, 214 insertions(+), 3 deletions(-) create mode 100644 base-theme/src/main/webapp/themes/ulisboa/403.html create mode 100644 base-theme/src/main/webapp/themes/ulisboa/404.html diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 92b5721..e8c92e7 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -1,3 +1,5 @@ +- Improvement: Adds 403 and 404 error pages [#qubIT-Omnis-8252] + 2.12.2 (05-11-2024) 2.12.1 (24-10-2024) - Improvement: Adds tweaks to general.css [#qubIT-Support-810] diff --git a/base-theme/src/main/resources/resources/ULisboaThemeResources_en.properties b/base-theme/src/main/resources/resources/ULisboaThemeResources_en.properties index 9b5bb3d..4d0526f 100644 --- a/base-theme/src/main/resources/resources/ULisboaThemeResources_en.properties +++ b/base-theme/src/main/resources/resources/ULisboaThemeResources_en.properties @@ -35,4 +35,11 @@ label.orLoginWith=Or login with label.quality.mode=Quality Environment: All changes made will be lost on the next update label.development.mode=Development Environment -label.database.last.tick=Data from: \ No newline at end of file +label.database.last.tick=Data from: + +title.not.found = Resource Not Found +title.not.authorized = Unauthorized + +error.not.authorized = You are not authorized to view this information. +error.not.found = Resource not found +error.not.found.message = Please verify the URL and that you are allowed to view the selected content or try again later. diff --git a/base-theme/src/main/resources/resources/ULisboaThemeResources_pt.properties b/base-theme/src/main/resources/resources/ULisboaThemeResources_pt.properties index 45c599a..e6be4e0 100644 --- a/base-theme/src/main/resources/resources/ULisboaThemeResources_pt.properties +++ b/base-theme/src/main/resources/resources/ULisboaThemeResources_pt.properties @@ -1,13 +1,13 @@ link.helpdeskReport = Apoio Fenix (Formulário) label.helpdesk.form = Formulário de Suporte -label.helpdesk.form.welcome = Este formulário serve para contactar o suporte técnico do sistema. Utilize-o se detectou um erro, tem uma sugestão/pedido ou uma dúvida de utilização. +label.helpdesk.form.welcome = Este formulário serve para contactar o suporte técnico do sistema. Utilize-o se detectou um erro, tem uma sugestão/pedido ou uma dívida de utilização. label.helpdesk.report.subject = Assunto label.helpdesk.report.description = Descrição label.helpdesk.report.description.tooltip = Seja o mais detalhado possível na descrição do problema. Se está a reportar um erro indique os passos necessários para o reproduzir, o resultado esperado e o resultado ocorrido. label.helpdesk.report.type = Tipo label.helpdesk.report.type.error = Erro label.helpdesk.report.type.request = Pedido -label.helpdesk.report.type.question = Dúvida +label.helpdesk.report.type.question = Dívida label.helpdesk.report.attachment = Anexo label.helpdesk.report.attachment.file.too.large = O tamanho do anexo carregado excede o tamanho máximo (5MB)! label.helpdesk.report.attachment.tooltip = De forma a ajudar a equipa de suporte a entender de forma mais precisa a situação reportada, anexe um ficheiro (com o máximo de 5 MB) que ilustre o problema identificado. @@ -36,3 +36,10 @@ label.orLoginWith=Ou fazer login com label.quality.mode=Ambiente de Qualidade: As alterações realizadas serão perdidas na próxima actualização label.development.mode=Ambiente de Desenvolvimento label.database.last.tick=Dados de: + +title.not.found = Recurso Não Encontrado +title.not.authorized = Não autorizado + +error.not.authorized = Não tem autorização para visualizar esta informação. +error.not.found = O recurso que procura não foi encontrado +error.not.found.message = Por favor verifique que o URL está correcto e que tem permissão para aceder ao conteúdo, ou tente mais tarde. \ No newline at end of file diff --git a/base-theme/src/main/webapp/themes/ulisboa/403.html b/base-theme/src/main/webapp/themes/ulisboa/403.html new file mode 100644 index 0000000..2125679 --- /dev/null +++ b/base-theme/src/main/webapp/themes/ulisboa/403.html @@ -0,0 +1,98 @@ + + + + + + + {{i18n('resources.ULisboaThemeResources', 'title.not.authorized')}} + + + + + + + + +
+
+
+ {% if logoResource != null %} + + {% else %} + + {% endif %} +
+
+ {{i18n('resources.ULisboaThemeResources', 'title.not.authorized')}} +
+
+
+

{{i18n('resources.ULisboaThemeResources', 'error.not.authorized')}}

+
+ {% if currentUser is empty %} +

Login

+ + {% else %} +

{{basicLocalization.back()}}

+ {% endif %} +
+
+ diff --git a/base-theme/src/main/webapp/themes/ulisboa/404.html b/base-theme/src/main/webapp/themes/ulisboa/404.html new file mode 100644 index 0000000..35819d7 --- /dev/null +++ b/base-theme/src/main/webapp/themes/ulisboa/404.html @@ -0,0 +1,97 @@ + + + + + + + {{i18n('resources.ULisboaThemeResources', 'title.not.found')}} + + + + + + + + +
+
+
+ {% if logoResource != null %} + + {% else %} + + {% endif %} +
+
+ {{i18n('resources.ULisboaThemeResources', 'error.not.found')}} +
+
+
+

{{i18n('resources.ULisboaThemeResources', 'error.not.found.message')}}

+
+ {% if currentUser is empty %} +

Login

+ + {% else %} +

{{basicLocalization.back()}}

+ {% endif %} +
+
+