diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js index b6bf64c3..63b850f8 100644 --- a/src/js/yunohost/controllers/tools.js +++ b/src/js/yunohost/controllers/tools.js @@ -95,6 +95,19 @@ } }); + // Display journals list + app.get('#/tools/journals', function (c) { + c.api("/journals", function(categories) { + c.view('tools/tools_journals', { + "data": categories, + formatDate: function() { + console.log("caca"); + return this.started_at.getDate(); + } + }); + }); + }); + // Download SSL Certificate Authority app.get('#/tools/ca', function (c) { c.view('tools/tools_ca'); @@ -170,4 +183,4 @@ }); }); -})(); \ No newline at end of file +})(); diff --git a/src/views/tools/tools_journals.ms b/src/views/tools/tools_journals.ms new file mode 100644 index 00000000..905f97d0 --- /dev/null +++ b/src/views/tools/tools_journals.ms @@ -0,0 +1,30 @@ +
+ + + +{{#if data}} +{{#data}} +{{#categories}} +