2013-09-29 00:09:02 +03:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
{% block body %}
|
|
|
|
|
2013-10-03 17:58:07 +03:00
|
|
|
<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>
|
|
|
|
|
|
|
|
<div id="page-content" style="display:none">
|
|
|
|
{{ page.data|safe }}
|
|
|
|
</div>
|
2013-09-29 00:09:02 +03:00
|
|
|
|
2013-10-02 04:50:48 +03:00
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
2013-10-03 17:58:07 +03:00
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
$("#page-content").html(converter({{ page.data|tojson|safe }})).show();
|
|
|
|
});
|
|
|
|
</script>
|
2013-09-29 00:09:02 +03:00
|
|
|
{% endblock %}
|