31 lines
1017 B
HTML
31 lines
1017 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,
|
|
show_tests=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),
|
|
tests_url=url_for('http.tests', function_id=function_id)) }}
|
|
|
|
<div id="history-view"></div>
|
|
|
|
<script>
|
|
// Mount the Mithril component with versions as an attribute
|
|
m.mount(document.getElementById("history-view"), {
|
|
view: () => m(FunctionHistory, {
|
|
versions: {{ versions| tojson | safe }},
|
|
function_id: {{ function_id }},
|
|
restore_url: "{{ url_for('http.restore', function_id=function_id) }}",
|
|
runtime: "{{ runtime }}"
|
|
})
|
|
});
|
|
</script>
|
|
{% endblock %} |