summaryrefslogtreecommitdiff
path: root/src/marlin.web/Views/Jobs
diff options
context:
space:
mode:
Diffstat (limited to 'src/marlin.web/Views/Jobs')
-rw-r--r--src/marlin.web/Views/Jobs/List.cshtml29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/marlin.web/Views/Jobs/List.cshtml b/src/marlin.web/Views/Jobs/List.cshtml
new file mode 100644
index 0000000..2c10e46
--- /dev/null
+++ b/src/marlin.web/Views/Jobs/List.cshtml
@@ -0,0 +1,29 @@
+@model ICollection<marlin.core.models.Job>
+
+<table>
+ <thead>
+ <tr>
+ <th>link</th>
+ <th>id</th>
+ <th>status</th>
+ <th>recipe</th>
+ <th>vcs</th>
+ <th>branch</th>
+ <th>agent</th>
+ </tr>
+ </thead>
+ <tbody>
+ @foreach (var source in Model)
+ {
+ <tr>
+ <td><a asp-action="Details" asp-route-id="@source.Id">open</a></td>
+ <td>@source.Id</td>
+ <td>@source.Status</td>
+ <td>@source.Recipe</td>
+ <td>@source.Source.UpstreamUrl</td>
+ <td>@source.Ref</td>
+ <td>@(source.Agent?.Name ?? "no agent assigned")</td>
+ </tr>
+ }
+ </tbody>
+</table>