diff options
author | 2019-04-18 17:55:21 +0100 | |
---|---|---|
committer | 2019-04-18 17:55:21 +0100 | |
commit | fab16f5da7bac8bf781e0d86076e9ef484e4047d (patch) | |
tree | 8c8c89cb9104337a6e6533471fa55ee4884364ab /pydis_site/templates/wiki | |
parent | Article deleted/Deleted list pages (diff) |
Source page
Diffstat (limited to 'pydis_site/templates/wiki')
-rw-r--r-- | pydis_site/templates/wiki/includes/anonymous_blocked.html | 13 | ||||
-rw-r--r-- | pydis_site/templates/wiki/source.html | 18 |
2 files changed, 8 insertions, 23 deletions
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 %} - -<em> -{% url 'wiki:signup' as signup_url %} -{% url 'wiki:login' as login_url %} -{% if login_url and signup_url %} - {% blocktrans trimmed %} - You need to <a href="{{ login_url }}">log in</a> or <a href="{{ signup_url }}">sign up</a> to use this function. - {% endblocktrans %} -{% else %} - {% trans "You need to log in or sign up to use this function." %} -{% endif %} -</em> 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 %} + <p>This article is currently locked for editing.</p> + {% endif %} -{% 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> - + <pre class="is-fullwidth"> +{{ article.current_revision.content }} + </pre> {% endblock %} |