aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/permission_denied.html
blob: 06afbbdaf9d040639da1ca00679c970e46748b0a (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
{% extends "wiki/base.html" %}
{% load wiki_tags i18n %}


{% block wiki_pagetitle %}Permission Denied{% endblock %}

{% block wiki_contents %}
  <h1 class="page-header">{% trans "Permission Denied" %}</h1>
  <p class="alert denied alert-danger">
    <i class="fa fa-minus-circle"></i>
    {% trans "Sorry, you don't have permission to access this page." %}
  </p>
  {% if article.current_revision.locked %}
  <p class="alert alert-warning">
    <i class="fa fa-lock"></i>
    {% trans "This article is locked for editing." %}
  </p>
  {% endif %}

  <p>
  {% if not read_denied %}
    <a href="{% url 'wiki:get' article_id=article.id path=urlpath.path %}" class="btn btn-default">
      {% trans "Back to article" %}
    </a>
  {% elif urlpath.parent %}
    <a href="{% url 'wiki:get' path=urlpath.parent.path %}" class="btn btn-default">
      {% trans "Back to article" %}
    </a>
  {% endif %}
  </p>

{% endblock %}