From 38a050c8151b9894c62b2d49ef482807412ea98c Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Wed, 28 Oct 2026 19:48:59 +1000 Subject: feat: ui changes; ci: add tests --- src/marlin.web/Views/Home/Privacy.cshtml | 6 -- src/marlin.web/Views/Jobs/Details.cshtml | 25 ++++---- src/marlin.web/Views/Jobs/List.cshtml | 4 +- src/marlin.web/Views/Jobs/Logs.cshtml | 14 +++++ .../Views/Shared/DisplayTemplates/JobStatus.cshtml | 6 ++ .../Shared/DisplayTemplates/LogEventRecords.cshtml | 9 +++ src/marlin.web/Views/Shared/_Layout.cshtml | 68 +++++++++++----------- src/marlin.web/Views/_ViewImports.cshtml | 1 + 8 files changed, 80 insertions(+), 53 deletions(-) delete mode 100644 src/marlin.web/Views/Home/Privacy.cshtml create mode 100644 src/marlin.web/Views/Jobs/Logs.cshtml create mode 100644 src/marlin.web/Views/Shared/DisplayTemplates/JobStatus.cshtml create mode 100644 src/marlin.web/Views/Shared/DisplayTemplates/LogEventRecords.cshtml (limited to 'src/marlin.web/Views') diff --git a/src/marlin.web/Views/Home/Privacy.cshtml b/src/marlin.web/Views/Home/Privacy.cshtml deleted file mode 100644 index e6eef70..0000000 --- a/src/marlin.web/Views/Home/Privacy.cshtml +++ /dev/null @@ -1,6 +0,0 @@ -@{ - ViewData["Title"] = "Privacy Policy"; -} -

@ViewData["Title"]

- -

Use this page to detail your site's privacy policy.

\ No newline at end of file diff --git a/src/marlin.web/Views/Jobs/Details.cshtml b/src/marlin.web/Views/Jobs/Details.cshtml index 9b27fe3..ccc128e 100644 --- a/src/marlin.web/Views/Jobs/Details.cshtml +++ b/src/marlin.web/Views/Jobs/Details.cshtml @@ -1,8 +1,11 @@ @model Job -@Model.Id - -@Model.Branch.Name +@section Crumbs { +
  • + Job @Model.Id + @Html.DisplayFor(x => x.Status) +
  • +}
    Id
    @@ -13,16 +16,18 @@
    Commit
    @Model.Commit.Hash
    - +
    Status
    @Model.Status
    - +
    +
    + Logs + (Expand) + (Download) +
    + +
    Back diff --git a/src/marlin.web/Views/Jobs/List.cshtml b/src/marlin.web/Views/Jobs/List.cshtml index 968a94f..86df3a4 100644 --- a/src/marlin.web/Views/Jobs/List.cshtml +++ b/src/marlin.web/Views/Jobs/List.cshtml @@ -5,8 +5,8 @@ + - @@ -18,8 +18,8 @@ @foreach (var source in Model) { + - diff --git a/src/marlin.web/Views/Jobs/Logs.cshtml b/src/marlin.web/Views/Jobs/Logs.cshtml new file mode 100644 index 0000000..4deffbd --- /dev/null +++ b/src/marlin.web/Views/Jobs/Logs.cshtml @@ -0,0 +1,14 @@ +@model Job + +@section Crumbs { +
  • + Job @Model.Id + @Html.DisplayFor(x => x.Status) +
  • + +
  • + Logs +
  • +} + + \ No newline at end of file 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 + + \ 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 + + +
    + @foreach (var line in Model) + { + [@line.At.ToString("HH:mm:ss")] [@line.StepId] @line.Message + } +
    \ No newline at end of file diff --git a/src/marlin.web/Views/Shared/_Layout.cshtml b/src/marlin.web/Views/Shared/_Layout.cshtml index 8ece676..3af6478 100644 --- a/src/marlin.web/Views/Shared/_Layout.cshtml +++ b/src/marlin.web/Views/Shared/_Layout.cshtml @@ -5,48 +5,46 @@ @ViewData["Title"] - marlin.web - -
    -
    -
    -
    - @RenderBody() -
    -
    -
    idstatus recipe vcs branch
    @Html.DisplayFor(x => source.Status) @source.Id@source.Status @source.Recipe @source.Source.UpstreamUrl @source.Branch.Name