From 981bca86e9afded8ba757dfc28c9d6a86940d2df Mon Sep 17 00:00:00 2001 From: John Costa Date: Sat, 19 Apr 2025 14:06:05 +0100 Subject: [PATCH] wip(logs): displaying image WIP because we need to bypass authorization here --- backend/logs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/logs.go b/backend/logs.go index c0023fd..256303e 100644 --- a/backend/logs.go +++ b/backend/logs.go @@ -82,6 +82,8 @@ func createLogHandler(logWriter *DatabaseWriter) func(r chi.Router) { html := "" + imageTag := fmt.Sprintf(``, stringImageId) + for _, log := range logs { html += fmt.Sprintf("
%s
", string(ansihtml.ConvertToHTML([]byte(log)))+"\n") } @@ -112,7 +114,7 @@ func createLogHandler(logWriter *DatabaseWriter) func(r chi.Router) { ` - fullHtml := fmt.Sprintf("Logs%s%s", css, html) + fullHtml := fmt.Sprintf("Logs%s%s%s", css, imageTag, html) w.Header().Add("Content-Type", "text/html") w.Write([]byte(fullHtml))