summaryrefslogtreecommitdiff
path: root/src/marlin.web/Views/Shared/DisplayTemplates
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-10-28 19:48:59 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-10-28 19:48:59 +1000
commit38a050c8151b9894c62b2d49ef482807412ea98c (patch)
treeb26d90c19acac2dfcb8d9a62d9503dc52789db79 /src/marlin.web/Views/Shared/DisplayTemplates
parente566edc0442330c11906da384d589c47f836de37 (diff)
feat: ui changes; ci: add tests
Diffstat (limited to 'src/marlin.web/Views/Shared/DisplayTemplates')
-rw-r--r--src/marlin.web/Views/Shared/DisplayTemplates/JobStatus.cshtml6
-rw-r--r--src/marlin.web/Views/Shared/DisplayTemplates/LogEventRecords.cshtml9
2 files changed, 15 insertions, 0 deletions
diff --git a/src/marlin.web/Views/Shared/DisplayTemplates/JobStatus.cshtml b/src/marlin.web/Views/Shared/DisplayTemplates/JobStatus.cshtml
new file mode 100644
index 0000000..324748d
--- /dev/null
+++ b/src/marlin.web/Views/Shared/DisplayTemplates/JobStatus.cshtml
@@ -0,0 +1,6 @@
+@model marlin.core.models.JobStatus
+
+<img
+ style="height: 1em;
+ vertical-align: middle"
+ src="~/img/status/@(Model.ToString().ToLower()).png"/> \ No newline at end of file
diff --git a/src/marlin.web/Views/Shared/DisplayTemplates/LogEventRecords.cshtml b/src/marlin.web/Views/Shared/DisplayTemplates/LogEventRecords.cshtml
new file mode 100644
index 0000000..044a672
--- /dev/null
+++ b/src/marlin.web/Views/Shared/DisplayTemplates/LogEventRecords.cshtml
@@ -0,0 +1,9 @@
+@model IEnumerable<LogEventRecord>
+
+
+<div class="log-view">
+ @foreach (var line in Model)
+ {
+ <span class="log-line @(line.Error ? "error" : "")">[@line.At.ToString("HH:mm:ss")] [@line.StepId] @line.Message</span>
+ }
+</div> \ No newline at end of file