From adc4246994b784b9b4367b0443aca0613ef20551 Mon Sep 17 00:00:00 2001 From: Talitha Pumar Date: Mon, 15 Oct 2018 09:20:38 -0300 Subject: [PATCH] Paginas personalizadas de erro (Melhorar a mensagem) (#2294) * paginas personalizadas de erro * Update 500.html --- sapl/templates/404.html | 171 ++++++++++++++++++++++++++++++++++++++++ sapl/templates/500.html | 135 +++++++++++++++++++++++++++++++ 2 files changed, 306 insertions(+) create mode 100644 sapl/templates/404.html create mode 100644 sapl/templates/500.html diff --git a/sapl/templates/404.html b/sapl/templates/404.html new file mode 100644 index 000000000..484a2a8f2 --- /dev/null +++ b/sapl/templates/404.html @@ -0,0 +1,171 @@ +{% load i18n staticfiles sass_tags menus %} +{% load common_tags %} + + + + + + + + + {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} + + {% block head_content %} + + + {# Styles #} + + + + + + + + + {# Scripts #} + {# modernizr must be in head (see http://modernizr.com/docs/#installing) #} + {% endblock %} + + + +
+ + {% if not request|has_iframe %} + {% block navigation %} + + {% endblock navigation %} + + {# Header #} + {% block main_header %} +
+ +
+ {% endblock main_header %} + {% else %} +
+ +
+
+
+
+ {% subnav %} +
+
+
+ {% endif %} +
+ +

{% trans 'Página não encontrada! Erro 404' %}

+
+
+ {% block base_content %} + {% endblock %} + {% if not request|has_iframe %} + {% block footer_container %} + +
+ {% endblock footer_container %} + {% endif %} + + {% block foot_js %} + + + + + + + + + + + + + + + + + + + + + {% block extra_js %}{% endblock %} + + + + {% endblock foot_js %} + + diff --git a/sapl/templates/500.html b/sapl/templates/500.html new file mode 100644 index 000000000..ab1afae4f --- /dev/null +++ b/sapl/templates/500.html @@ -0,0 +1,135 @@ +{% load i18n staticfiles sass_tags menus %} +{% load common_tags %} + + + + + + + + + {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} + + {% block head_content %} + + + {# Styles #} + + + + + + + + + {# Scripts #} + {# modernizr must be in head (see http://modernizr.com/docs/#installing) #} + {% endblock %} + + + +
+ + {% block navigation %} + + {% endblock navigation %} + + {# Header #} + {% block main_header %} +
+
+ +
+ {% block sections_nav %} {% subnav %} {% endblock sections_nav %} +
+
+
+ {% endblock main_header %} + +
+ +

{% trans 'Ocorreu um erro inesperado! Erro 500' %}

+
+
+ {% block base_content %} + {% endblock %} + {% block footer_container %} + +
+ {% endblock footer_container %} + + {% block foot_js %} + + + + + + + + + + + + + + + + + + + + + {% block extra_js %}{% endblock %} + + {% endblock foot_js %} + +