24 lines
748 B
HTML
24 lines
748 B
HTML
{% extends 'dashboard.html' %}
|
|
|
|
{% block page %}
|
|
|
|
{{ render_partial('dashboard/http_functions/header.html', user_id=user_id, function_id=function_id,
|
|
active_tab='history',
|
|
show_edit_form=True,
|
|
show_logs=True,
|
|
show_client=True,
|
|
show_history=True,
|
|
edit_url=url_for('http.editor', function_id=function_id),
|
|
cancel_url=url_for('http.overview'),
|
|
logs_url=url_for('http.logs', function_id=function_id),
|
|
history_url=url_for('http.history', function_id=function_id)) }}
|
|
|
|
<div id="version-diff"></div>
|
|
|
|
<script>
|
|
// Mount the Mithril component with versions as an attribute
|
|
m.mount(document.getElementById("version-diff"), {
|
|
view: () => m(DiffView, { versions: {{ versions| tojson }} })
|
|
});
|
|
</script>
|
|
{% endblock %} |