From dc3632840762097839ee356bdbe84a88e6276127 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Wed, 20 May 2015 07:56:07 +0100 Subject: [PATCH] Added base templates --- .../project_name/templates/404.html | 9 +++++ .../project_name/templates/500.html | 17 +++++++++ .../project_name/templates/base.html | 35 +++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 wagtail/project_template/project_name/templates/404.html create mode 100644 wagtail/project_template/project_name/templates/500.html create mode 100644 wagtail/project_template/project_name/templates/base.html diff --git a/wagtail/project_template/project_name/templates/404.html b/wagtail/project_template/project_name/templates/404.html new file mode 100644 index 000000000..0c1232f1b --- /dev/null +++ b/wagtail/project_template/project_name/templates/404.html @@ -0,0 +1,9 @@ +{% templatetag openblock %} extends "base.html" {% templatetag closeblock %} + +{% templatetag openblock %} block body_class {% templatetag closeblock %}template-404{% templatetag openblock %} endblock {% templatetag closeblock %} + +{% templatetag openblock %} block content {% templatetag closeblock %} +

Page not found

+ +

Sorry, this page could not be found.

+{% templatetag openblock %} endblock {% templatetag closeblock %} diff --git a/wagtail/project_template/project_name/templates/500.html b/wagtail/project_template/project_name/templates/500.html new file mode 100644 index 000000000..2a5be4cbb --- /dev/null +++ b/wagtail/project_template/project_name/templates/500.html @@ -0,0 +1,17 @@ + + + + + + + + + Internal server error + + + +

Internal server error

+ +

Sorry, there seems to be an error. Please try again soon.

+ + diff --git a/wagtail/project_template/project_name/templates/base.html b/wagtail/project_template/project_name/templates/base.html new file mode 100644 index 000000000..5ddfd5f9a --- /dev/null +++ b/wagtail/project_template/project_name/templates/base.html @@ -0,0 +1,35 @@ +{% templatetag openblock %} load compress static wagtailuserbar {% templatetag closeblock %} + + + + + + + + + + {% templatetag openblock %} block title %}{% templatetag openblock %} if self.seo_title %}{% templatetag openvariable %} self.seo_title {% templatetag closevariable %}{% templatetag openblock %} else %}{% templatetag openvariable %} self.title {% templatetag closevariable %}{% templatetag openblock %} endif {% templatetag closeblock %}{% templatetag openblock %} endblock {% templatetag closeblock %}{% templatetag openblock %} block title_suffix {% templatetag closeblock %}{% templatetag openblock %} endblock {% templatetag closeblock %} + + + + {# Global stylesheets #} + + + {% templatetag openblock %} block extra_css {% templatetag closeblock %} + {# Override this in templates to add extra stylesheets #} + {% templatetag openblock %} endblock {% templatetag closeblock %} + + + + {% templatetag openblock %} wagtailuserbar {% templatetag closeblock %} + + {% templatetag openblock %} block content {% templatetag closeblock %}{% templatetag openblock %} endblock {% templatetag closeblock %} + + {# Global javascript #} + + + {% templatetag openblock %} block extra_js {% templatetag closeblock %} + {# Override this in templates to add extra javascript #} + {% templatetag openblock %} endblock {% templatetag closeblock %} + +