Mercurial > libervia-templates
changeset 314:fd9b39f5e00a
bulma: add missing `error` templates
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 27 Mar 2021 14:41:21 +0100 |
parents | a8fa6e118813 |
children | f7ffdd1aed4c |
files | sat_templates/templates/bulma/default/error/401.html sat_templates/templates/bulma/default/error/403.html sat_templates/templates/bulma/default/error/404.html sat_templates/templates/bulma/default/error/base.html |
diffstat | 4 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/default/error/401.html Sat Mar 27 14:41:21 2021 +0100 @@ -0,0 +1,6 @@ +{% extends 'error/base.html' %} + +{% block body %} +<h1>{% trans %}Unauthorized{% endtrans %}</h1> +<p>{% trans %}Sorry, you are not authorized to access this page. An authentication is needed.{% endtrans %}</p> +{% endblock body %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/default/error/403.html Sat Mar 27 14:41:21 2021 +0100 @@ -0,0 +1,6 @@ +{% extends 'error/base.html' %} + +{% block body %} +<h1>{% trans %}Unauthorized{% endtrans %}</h1> +<p>{% trans %}Sorry, you are not allowed to access this page.{% endtrans %}</p> +{% endblock body %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/default/error/404.html Sat Mar 27 14:41:21 2021 +0100 @@ -0,0 +1,6 @@ +{% extends 'error/base.html' %} + +{% block body %} +<h1>{% trans %}Not Found{% endtrans %}</h1> +<p>{% trans %}Sorry, we can't find the resource you are trying to access.{% endtrans %}</p> +{% endblock body %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/default/error/base.html Sat Mar 27 14:41:21 2021 +0100 @@ -0,0 +1,7 @@ +{% extends 'base/base.html' %} + +{% block title %}{% trans %}Error {{error_code}}{% endtrans %}{% endblock %} +{% block body %} +{% trans %}An error occured while trying to access the resource.{% endtrans %} +{% endblock body %} +{% block footer %}{% endblock %}