diff --git a/cps/static/js/main.js b/cps/static/js/main.js index 3fdd42ae..38a7fb87 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -110,18 +110,33 @@ $(function() { url: window.location.pathname + "/../../get_update_status", success: function success(data) { $this.html(buttonText); - if (data.status === true) { - $("#check_for_update").addClass("hidden"); - $("#perform_update").removeClass("hidden"); - $("#update_info") - .removeClass("hidden") - .find("span").html(data.commit); - } - if (data.error.length != 0) { - $("#update_error") - .removeClass("hidden") - .find("span").html(data.error); + + var cssClass = ''; + var message = '' + + if (data.success === true) { + if (data.update === true) { + $("#check_for_update").addClass("hidden"); + $("#perform_update").removeClass("hidden"); + $("#update_info") + .removeClass("hidden") + .find("span").html(data.commit); + + data.history.reverse().forEach((entry, index) => { + $("
{{_('Version')}} | +{{_('Details')}} | +
---|---|
{{commit}} ({{_('current version')}}) | +/ | +