blob: d7ee70fd0df156193ee0268e432af998573623da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 %}
|