From d83517f67ba638abed1d76541068413e60142194 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Thu, 26 Dec 2024 18:41:29 +0100 Subject: Refresh task view dynamically with Javascript This is more efficient, responsive, and user friendly. --- acid.go | 231 ++++++++++++++++++++++++++++++++++++++++++------------- terminal.go | 12 ++- terminal_test.go | 32 +++++++- 3 files changed, 220 insertions(+), 55 deletions(-) diff --git a/acid.go b/acid.go index cdf9007..62687f4 100644 --- a/acid.go +++ b/acid.go @@ -263,53 +263,182 @@ var templateTask = template.Must(template.New("tasks").Parse(`
{{printf "%s" .RunLog}}
-{{end}}
-{{if .TaskLog}}
-{{printf "%s" .TaskLog}}
-{{end}}
-{{if .DeployLog}}
-{{printf "%s" .DeployLog}}
-{{end}}
-
+
+{{printf "%s" .RunLog}}
+{{printf "%s" .TaskLog}}
+{{printf "%s" .DeployLog}}
+
+{{if .IsRunning -}}
+
+{{end -}}
+