26 lines
749 B
HTML
26 lines
749 B
HTML
{% extends 'dashboard.html' %}
|
|
|
|
{% block page %}
|
|
|
|
{{ render_partial('dashboard/timer_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 }} })
|
|
});
|
|
</script>
|
|
{% endblock %} |