summaryrefslogtreecommitdiff
path: root/src/marlin.web/Views/Shared/DisplayTemplates
diff options
context:
space:
mode:
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