diff options
| author | 2019-04-20 23:49:12 +0200 | |
|---|---|---|
| committer | 2019-04-20 23:49:12 +0200 | |
| commit | 0e373cd953dd7ee8433cd936a8df050ab097bb08 (patch) | |
| tree | 54061f3d1f33247f0a57efc311167ba275c67c94 /pydis_site/templates/wiki/error.html | |
| parent | Merge pull request #213 from python-discord/django_front_page (diff) | |
| parent | Replace wiki dep with PyDis fork, add git to Docker (diff) | |
Merge pull request #202 from gdude2002/django+200/wiki
[#200] Django Wiki
Diffstat (limited to 'pydis_site/templates/wiki/error.html')
| -rw-r--r-- | pydis_site/templates/wiki/error.html | 51 |
1 files changed, 51 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..d7ee70fd --- /dev/null +++ b/pydis_site/templates/wiki/error.html @@ -0,0 +1,51 @@ +{% extends "wiki/base.html" %} +{% load wiki_tags %} + +{% block wiki_pagetitle %}{% if article %}{{ article.current_revision.title }}{% else %}Error{% endif %}{% endblock %} + +{% block wiki_breadcrumbs %} + {% include "wiki/includes/breadcrumbs.html" %} +{% endblock %} + +{% block wiki_contents %} + {% if error_type == "ancestors_missing" %} + <h1 class="title">Not Found</h1> + + <article class="message is-primary"> + <div class="message-body"> + <p> + We were unable to find that page. If you think this was in error, please let us know! + </p> + <a href="{% url 'wiki:get' path='' %}" class="button is-primary"> + <span class="icon"> + <i class="fas fa-arrow-left"></i> + </span> + <span>Back to homepage</span> + </a> + </div> + </article> + {% else %} + <h1 class="title">Error</h1> + + <article class="message is-danger"> + <div class="message-body"> + <p> + {% if not error_msg %} + Unfortunately, an error occurred while retrieving that page. Please let us know! + {% else %} + {{ error_msg }} + {% endif %} + </p> + + {% if article %} + <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="button is-primary"> + <span class="icon"> + <i class="fas fa-arrow-left"></i> + </span> + <span>Back to {{ article.current_revision.title }}</span> + </a> + {% endif %} + </div> + </article> + {% endif %} +{% endblock %} |