diff options
| author | 2019-04-08 14:06:11 +0100 | |
|---|---|---|
| committer | 2019-04-08 14:06:11 +0100 | |
| commit | 027475779bfa7db50a1c1ff9935bcb546b33f961 (patch) | |
| tree | 1782c502797f4e1cea5a876dcb4b51f99e4a8ba1 /pydis_site/templates/wiki/error.html | |
| parent | Remove wiki host, use /wiki - Also some wiki config (diff) | |
Add base templates for django-wiki, as provided
Diffstat (limited to 'pydis_site/templates/wiki/error.html')
| -rw-r--r-- | pydis_site/templates/wiki/error.html | 45 | 
1 files changed, 45 insertions, 0 deletions
diff --git a/pydis_site/templates/wiki/error.html b/pydis_site/templates/wiki/error.html new file mode 100644 index 00000000..b54c8cff --- /dev/null +++ b/pydis_site/templates/wiki/error.html @@ -0,0 +1,45 @@ +{% extends "wiki/base.html" %} +{% load wiki_tags i18n %} + + +{% block wiki_pagetitle %}{% if article %}{{ article.current_revision.title }}{% else %}{% trans "Error" %}{% endif %}{% endblock %} + +{% block wiki_breadcrumbs %} +{% include "wiki/includes/breadcrumbs.html" %} +{% endblock %} + +{% block wiki_contents %} + +{% if error_type == "ancestors_missing" %} + +  <h1 class="page-header">{% trans "Not found" %}</h1> + +  <div class="missing"> +    <p>{% trans "This article was not found, and neither was its parent article." %}</p> +    <p> +      <a href="{% url 'wiki:get' path='' %}" class="btn btn-default"><i class="fa fa-arrow-left"></i> {% trans "Start page" %}</a> +    </p> +  </div> + +{% else %} + +  <h1 class="page-header">{% trans "Error" %}</h1> + +  <div class="error"> +    {% if not error_msg %} +    <p>{% trans "There was some sort of error accessing this page. Sorry!" %}</p> +    {% else %} +    <p>{{ error_msg }}</p> +    {% endif %} +  </div> + +  {% if article %} +  <p> +    <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="btn btn-default"><i class="fa fa-arrow-left"></i> {% trans "Back to" %} {{ article.current_revision.title }}</a> +  </p> +  {% endif %} + + +{% endif %} + +{% endblock %}  |