Update function history view
This commit is contained in:
@@ -13,12 +13,12 @@ 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>
|
||||
<div id="history-view"></div>
|
||||
|
||||
<script>
|
||||
// Mount the Mithril component with versions as an attribute
|
||||
m.mount(document.getElementById("version-diff"), {
|
||||
view: () => m(DiffView, { versions: {{ versions| tojson }} })
|
||||
m.mount(document.getElementById("history-view"), {
|
||||
view: () => m(FunctionHistory, { versions: {{ versions| tojson | safe }} })
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user