diff --git a/templates/root/history.mako b/templates/root/history.mako index 5f21840e10a..fb62d489806 100644 --- a/templates/root/history.mako +++ b/templates/root/history.mako @@ -73,9 +73,12 @@ }); // Updater updater({ - %for data in reversed( datasets ): + %for i, data in enumerate( reversed( datasets ) ): %if data.visible and data.state not in [ "deleted", "empty", "error", "ok" ]: - "${data.id}": "${data.state}"; + %if i > 0: + , + %endif + "${data.id}": "${data.state}" %endif %endfor });