mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
{% extends "templates/base.html" %}
|
|
|
|
{% block extra-headers %}
|
|
<!-- ifequal js-from ":cloudflare" -->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/8.4.6/mermaid.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/5.9.1/vega.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-lite/4.1.1/vega-lite.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/6.2.2/vega-embed.min.js"></script>
|
|
<!-- else -->
|
|
<!-- TODO: currently `lein npm install` fails to build packages on all platforms, and
|
|
fails SILENTLY. Consequently setting js-from to local is not advised. Investigting. -->
|
|
<!-- script "vendor/mermaid/dist/mermaid.js" %} -->
|
|
<!-- endifequal -->
|
|
{% 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 %}
|