From: Maciej Tronowski Date: Tue, 5 May 2015 14:30:51 +0000 (+0200) Subject: fancy error pages X-Git-Tag: v1.0~15 X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=commitdiff_plain;h=5d89371016f27ca592862971f0e4c56a32c497bd;p=qcg-portal.git fancy error pages --- diff --git a/qcg/templates/400.html b/qcg/templates/400.html new file mode 100644 index 0000000..44ceec7 --- /dev/null +++ b/qcg/templates/400.html @@ -0,0 +1,4 @@ +{% extends 'qcg/error_page.html' %} + +{% block title %}Nieprawidłowe żądanie{% endblock %} +{% block details %}Żądanie nie może zostać obsłużone przez serwer.{% endblock %} diff --git a/qcg/templates/403.html b/qcg/templates/403.html new file mode 100644 index 0000000..9aed16d --- /dev/null +++ b/qcg/templates/403.html @@ -0,0 +1,4 @@ +{% extends 'qcg/error_page.html' %} + +{% block title %}Brak uprawnień{% endblock %} +{% block details %}Użytkownik nie posiada wystarczających uprawnień do wykonania żądanej operacji.{% endblock %} diff --git a/qcg/templates/404.html b/qcg/templates/404.html new file mode 100644 index 0000000..d8ba4f9 --- /dev/null +++ b/qcg/templates/404.html @@ -0,0 +1,4 @@ +{% extends 'qcg/error_page.html' %} + +{% block title %}Nie znaleziono strony{% endblock %} +{% block details %}Nie znaleziono strony o adresie {{ request_path }}{% endblock %} diff --git a/qcg/templates/500.html b/qcg/templates/500.html new file mode 100644 index 0000000..4b01627 --- /dev/null +++ b/qcg/templates/500.html @@ -0,0 +1,4 @@ +{% extends 'qcg/error_page.html' %} + +{% block title %}Błąd serwera{% endblock %} +{% block details %}Serwer napotkał niespodziewane trudności, które uniemożliwiły zrealizowanie żądania.{% endblock %} diff --git a/qcg/templates/qcg/error_page.html b/qcg/templates/qcg/error_page.html new file mode 100644 index 0000000..d3b13a0 --- /dev/null +++ b/qcg/templates/qcg/error_page.html @@ -0,0 +1,11 @@ +{% extends 'qcg/base.html' %} + +{% block container %} +

{% block title %}Błąd{% endblock %}

+
+ + {% block details %}{% endblock %} +
+ + +{% endblock %}