@@ -23,6 +26,7 @@
| @source.Source.UpstreamUrl |
@source.Ref |
@(source.Agent?.Name ?? "no agent assigned") |
+ @(source.CreatedReason) |
}
diff --git a/src/marlin.web/Views/Jobs/Spawn.cshtml b/src/marlin.web/Views/Jobs/Spawn.cshtml
new file mode 100644
index 0000000..8f7ee43
--- /dev/null
+++ b/src/marlin.web/Views/Jobs/Spawn.cshtml
@@ -0,0 +1,56 @@
+@using System.Linq
+@using System.Text.Json
+@using marlin.web.Controllers
+@model marlin.web.Controllers.JobsController.JobSpawnDetails
+
+@{
+ var sourcesJson = JsonSerializer.Serialize(Model.Sources.Select(s => new
+ {
+ id = s.Id,
+ label = s.UpstreamUrl,
+ mainBranch = s.MainBranch,
+ branches = s.Branches.Select(b => new { name = b.Name, commit = b.Commit.Hash })
+ }));
+}
+
+