From fab16f5da7bac8bf781e0d86076e9ef484e4047d Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Thu, 18 Apr 2019 17:55:21 +0100 Subject: Source page --- .../templates/wiki/includes/anonymous_blocked.html | 13 ------------- pydis_site/templates/wiki/source.html | 18 ++++++++---------- 2 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 pydis_site/templates/wiki/includes/anonymous_blocked.html diff --git a/pydis_site/templates/wiki/includes/anonymous_blocked.html b/pydis_site/templates/wiki/includes/anonymous_blocked.html deleted file mode 100644 index 5e1d3dac..00000000 --- a/pydis_site/templates/wiki/includes/anonymous_blocked.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load i18n %} - - -{% url 'wiki:signup' as signup_url %} -{% url 'wiki:login' as login_url %} -{% if login_url and signup_url %} - {% blocktrans trimmed %} - You need to log in or sign up to use this function. - {% endblocktrans %} -{% else %} - {% trans "You need to log in or sign up to use this function." %} -{% endif %} - diff --git a/pydis_site/templates/wiki/source.html b/pydis_site/templates/wiki/source.html index 0c610208..caae077e 100644 --- a/pydis_site/templates/wiki/source.html +++ b/pydis_site/templates/wiki/source.html @@ -1,17 +1,15 @@ {% extends "wiki/article.html" %} -{% load wiki_tags i18n humanize %} +{% load wiki_tags humanize %} -{% block wiki_pagetitle %}{% trans "Source of" %} {{ article.current_revision.title }}{% endblock %} +{% block wiki_pagetitle %}Source of "{{ article.current_revision.title }}"{% endblock %} {% block wiki_contents_tab %} + {% if article.current_revision.locked %} +

This article is currently locked for editing.

+ {% endif %} -{% if article.current_revision.locked %} -

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

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