From 70c2290dce77bb0499c40cde5cadef46621289fa Mon Sep 17 00:00:00 2001 From: tzvonimir Date: Fri, 29 Mar 2024 19:13:59 +0100 Subject: [PATCH] Add commands table to command details --- resources/routes.go | 1 + resources/views/command.html | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/resources/routes.go b/resources/routes.go index b7d6d80..3187429 100644 --- a/resources/routes.go +++ b/resources/routes.go @@ -195,6 +195,7 @@ func commandHandler(w http.ResponseWriter, r *http.Request) { "CommandsJSON": commandsJson, "StartTime": start, "EndTime": end, + "Commands": commands, }); err != nil { showError(w) } diff --git a/resources/views/command.html b/resources/views/command.html index b3ca088..c9b661d 100644 --- a/resources/views/command.html +++ b/resources/views/command.html @@ -5,6 +5,9 @@ Command Execution Dashboard + + +
@@ -36,9 +39,31 @@
+
+ + + + + + + + + + {{range .Commands}} + + + + + + {{end}} + +
CategoryCommandExecution Time
{{.Category}}{{.Command}}{{.ExecutionTime}}
+