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/source.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/source.html')
-rw-r--r-- | pydis_site/templates/wiki/source.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pydis_site/templates/wiki/source.html b/pydis_site/templates/wiki/source.html new file mode 100644 index 00000000..0c610208 --- /dev/null +++ b/pydis_site/templates/wiki/source.html @@ -0,0 +1,17 @@ +{% extends "wiki/article.html" %} +{% load wiki_tags i18n humanize %} + + +{% block wiki_pagetitle %}{% trans "Source of" %} {{ article.current_revision.title }}{% endblock %} + +{% block wiki_contents_tab %} + +{% if article.current_revision.locked %} +<p class="lead">{% trans "This article is currently locked for editing." %}</p> +{% endif %} + +<pre class="pre-scrollable"> + {{ article.current_revision.content }} +</pre> + +{% endblock %} |