Add simple 404 and 500 error templates

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2013-02-28 16:58:27 +00:00
parent 2ad289e312
commit b3e5c460f8
2 changed files with 37 additions and 0 deletions

26
404.html Normal file
View File

@ -0,0 +1,26 @@
{% extends "base.html" %}
{% load i18n %}
{% comment %}
layerindex-web - 404 page template
Copyright (C) 2013 Intel Corporation
Licensed under the MIT license, see COPYING.MIT for details
{% endcomment %}
<!--
{% block title %}OpenEmbedded metadata index - page not found{% endblock %}
-->
{% block content %}
{% autoescape on %}
<p>The page you requested was not found.</p>
<p><a href="{% url layer_list %}">Return to the index</a></p>
{% endautoescape %}
{% endblock %}

11
500.html Normal file
View File

@ -0,0 +1,11 @@
<html>
<head>
<title>Internal server error</title>
</head>
<body>
<h1>Internal server error</h1>
<p>Something went wrong. The error has been logged, please check back later.</p>
</body>
</html>