aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/includes/render.html
blob: 28ab76c96412cecef8626e7c5c3263ce37bd7592 (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
{% load wiki_tags i18n cache sekizai_tags static %}

{% addtoblock "js" %}
  <script type="text/javascript" src="{% static "wiki/js/article.js" %}"></script>
{% endaddtoblock %}

<div class="wiki-article">
  {{ content|default:"" }}
</div>

{% for plugin in plugins %}
  {% if plugin.RenderMedia.css %}
    {% addtoblock "css" %}
      {% for media, url in plugin.RenderMedia.css.items %}
        <link rel="stylesheet" href="{% static url %}" />
      {% endfor %}
    {% endaddtoblock %}
  {% endif %}
  {% if plugin.RenderMedia.js %}
    {% addtoblock "js" %}
      {% for url in plugin.RenderMedia.js %}
        <script type="text/javascript" src="{% static url %}"></script>
      {% endfor %}
    {% endaddtoblock %}
  {% endif %}
{% endfor %}