diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js index cc2c6a1c..6acb2051 100644 --- a/src/js/yunohost/controllers/tools.js +++ b/src/js/yunohost/controllers/tools.js @@ -98,8 +98,18 @@ // Display journals list app.get('#/tools/logs', function (c) { c.api("/logs", function(categories) { + data = []; + for (var category in categories) { + if (categories.hasOwnProperty(category)) { + data.push({ + key:category, + value:categories[category] + }); + } + } + c.view('tools/tools_logs', { - "data": categories, + "data": data, formatDate: function() { return this.started_at.getDate(); } diff --git a/src/views/tools/tools_logs.ms b/src/views/tools/tools_logs.ms index 12e4e43e..ca3ca26f 100644 --- a/src/views/tools/tools_logs.ms +++ b/src/views/tools/tools_logs.ms @@ -7,22 +7,22 @@
{{#if data}} -{{#data}}
+{{#data}}
- {{/data}} +
{{/if}}