realms-wiki/realms/templates/page/page.html

22 lines
549 B
HTML
Raw Normal View History

{% extends 'layout.html' %}
{% block page_menu %}
<div class="controls pull-right">
<a class="btn btn-default btn-sm" href="/edit/{{ name }}">Edit</a>
<a class="btn btn-default btn-sm" href="/history/{{ name }}">History</a>
</div>
{% endblock %}
{% block body %}
2013-10-03 17:58:07 +03:00
<div id="page-content" style="display:none">
2013-10-08 22:47:49 +03:00
{{ page.data }}
2013-10-03 17:58:07 +03:00
</div>
2013-10-02 04:50:48 +03:00
{% endblock %}
{% block js %}
2013-10-03 17:58:07 +03:00
<script>
$(function(){
2013-10-08 00:52:12 +03:00
$("#page-content").html(MDR.convert({{ page.data|tojson|safe }})).show();
2013-10-03 17:58:07 +03:00
});
</script>
{% endblock %}