smeagol/resources/templates/wiki.html
Simon Brooke 40ab296d1a
#45: OK, it doesn't work, but it's close.
Still getting fragment index instead of fragment text.
2020-02-13 14:45:16 +00:00

32 lines
876 B
HTML

{% extends "templates/base.html" %}
{% block extra-headers %}
{% for script in scripts %}
<script src="{{script}}"></script>
{% endfor %}
{% for style in styles %}
<link href="{{style}}" rel="stylesheet" type="text/css" />
{% endfor %}
{% endblock %}
{% block content %}
<div id="content" class="wiki">
{% if editable %}
<ul class="minor-controls">
<li><a href="{{servlet-context}}/edit?page={{title}}">{% i18n edit-page-link %}</a></li>
<li><a href="history?page={{page}}">{% i18n history-link %}</a></li>
</ul>
{% endif %}
{{content|safe}}
</div>
<script>
//<![CDATA[
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", function(event) {
mermaid.initialize({startOnLoad:true});
});
}
//]]
</script>
{% endblock %}