30 lines
892 B
HTML
30 lines
892 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_history=True,
|
|
edit_url=url_for('timer.edit', function_id=function_id),
|
|
cancel_url=url_for('timer.overview'),
|
|
logs_url=url_for('timer.logs', function_id=function_id),
|
|
history_url=url_for('timer.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 }},
|
|
function_id: {{ function_id }},
|
|
restore_url: "{{ url_for('timer.restore', function_id=function_id) }}"
|
|
})
|
|
});
|
|
</script>
|
|
{% endblock %} |