aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/article.html
blob: 03c007e68ba0ed1ab97affe41d49af0da6d70509 (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
33
34
35
36
37
38
39
40
{% extends "wiki/base.html" %}
{% load wiki_tags i18n sekizai_tags %}


{% block wiki_pagetitle %}{{ article.current_revision.title }}{% endblock %}

{% block wiki_navbar %}
  {% include "wiki/includes/article_menu.html" %}
{% endblock %}

{% block wiki_breadcrumbs %}
  {% include "wiki/includes/breadcrumbs.html" %}
{% endblock %}

{% block wiki_contents %}
  <div id="article-container">
    <h1 id="article-title">
      {{ article.current_revision.title }}
      <small style="font-size: 14px;">
        {% if urlpath.parent %}
          <a href="{% url 'wiki:get' path=urlpath.path %}"><span class="fa fa-bookmark"></span> {{ urlpath.slug }}</a>
        {% endif %}

        {% if article.current_revision.locked %}
          <span class="icon">
            <i class="fas fa-lock"></i>
          </span> locked
        {% endif %}
      </small>
    </h1>
    <div>
      {% block wiki_contents_tab %}
      {% endblock %}
    </div>
  </div>
{% endblock %}

{% block wiki_footer_prepend %}
  <p style="margin-bottom: 10px;"><em>This article was last modified: {{ article.current_revision.modified }}</em></p>
{% endblock %}