diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js index 63b850f8..d2ae7a4f 100644 --- a/src/js/yunohost/controllers/tools.js +++ b/src/js/yunohost/controllers/tools.js @@ -108,6 +108,15 @@ }); }); + // One journal + app.get('#/tools/journals/:file_name', function (c) { + c.api("/journals/" + c.params["file_name"], function(journal) { + c.view('tools/tools_journal', { + "journal": journal, + }); + }); + }); + // Download SSL Certificate Authority app.get('#/tools/ca', function (c) { c.view('tools/tools_ca'); diff --git a/src/views/tools/tools_journal.ms b/src/views/tools/tools_journal.ms new file mode 100644 index 00000000..986acfad --- /dev/null +++ b/src/views/tools/tools_journal.ms @@ -0,0 +1,47 @@ +{{#journal}} +
+ {{t 'home'}} + {{t 'tools'}} + {{t 'journals'}} + {{ name }} - {{ started_at }} +
+ +
+ +
+
+

{{t 'infos'}}

+
+
+
+
{{t 'name'}}
{{ name }}
+
{{t 'started_at'}}
{{ started_at }}
+
{{t 'path'}}
{{ path }}
+ {{#each metadata}} +
{{@key}}
+
{{.}}
+ {{/each}} +
+
+
+ +
+
+

{{t 'logs'}}

+
+
+ + + + + +
+
{{#logs}}{{datetime}}
+{{/logs}}
+
+
{{#logs}}{{{line}}}
+{{/logs}}
+
+
+
+{{/journal}}