summaryrefslogtreecommitdiff
path: root/src/marlin.web/Views/Jobs/List.cshtml
blob: 6ae1d9640834f1faf0d1bd775a39339f2a403bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@model ICollection<marlin.core.models.Job>

<a asp-action="Spawn">Spawn new...</a>

<table>
    <thead>
    <tr>
        <th>link</th>
        <th>id</th>
        <th>status</th>
        <th>recipe</th>
        <th>vcs</th>
        <th>branch</th>
        <th>agent</th>
        <th>created</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>
            <td>@(source.CreatedReason)</td>
        </tr>
    }
    </tbody>
</table>