Files
function/templates/dashboard/http_functions/history.html
2025-07-24 23:00:22 +10:00

24 lines
762 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="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 }} })
});
</script>
{% endblock %}