From 5d89371016f27ca592862971f0e4c56a32c497bd Mon Sep 17 00:00:00 2001 From: Maciej Tronowski Date: Tue, 5 May 2015 16:30:51 +0200 Subject: [PATCH] fancy error pages --- qcg/templates/400.html | 4 ++++ qcg/templates/403.html | 4 ++++ qcg/templates/404.html | 4 ++++ qcg/templates/500.html | 4 ++++ qcg/templates/qcg/error_page.html | 11 +++++++++++ 5 files changed, 27 insertions(+) create mode 100644 qcg/templates/400.html create mode 100644 qcg/templates/403.html create mode 100644 qcg/templates/404.html create mode 100644 qcg/templates/500.html create mode 100644 qcg/templates/qcg/error_page.html 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 %} -- 1.7.9.5