From 027475779bfa7db50a1c1ff9935bcb546b33f961 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Mon, 8 Apr 2019 14:06:11 +0100 Subject: Add base templates for django-wiki, as provided --- pydis_site/templates/wiki/source.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pydis_site/templates/wiki/source.html (limited to 'pydis_site/templates/wiki/source.html') 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 %} +

{% trans "This article is currently locked for editing." %}

+{% endif %} + +
+  {{ article.current_revision.content }}
+
+ +{% endblock %} -- cgit v1.2.3