summaryrefslogtreecommitdiff
path: root/src/marlin.web/Controllers
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-10-28 19:48:59 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-10-28 19:48:59 +1000
commit38a050c8151b9894c62b2d49ef482807412ea98c (patch)
treeb26d90c19acac2dfcb8d9a62d9503dc52789db79 /src/marlin.web/Controllers
parente566edc0442330c11906da384d589c47f836de37 (diff)
feat: ui changes; ci: add tests
Diffstat (limited to 'src/marlin.web/Controllers')
-rw-r--r--src/marlin.web/Controllers/HomeController.cs5
-rw-r--r--src/marlin.web/Controllers/JobsController.cs12
2 files changed, 12 insertions, 5 deletions
diff --git a/src/marlin.web/Controllers/HomeController.cs b/src/marlin.web/Controllers/HomeController.cs
index 243f66d..62b6e70 100644
--- a/src/marlin.web/Controllers/HomeController.cs
+++ b/src/marlin.web/Controllers/HomeController.cs
@@ -11,11 +11,6 @@ public class HomeController : Controller
return View();
}
- public IActionResult Privacy()
- {
- return View();
- }
-
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
diff --git a/src/marlin.web/Controllers/JobsController.cs b/src/marlin.web/Controllers/JobsController.cs
index 9aaf6eb..5d5a716 100644
--- a/src/marlin.web/Controllers/JobsController.cs
+++ b/src/marlin.web/Controllers/JobsController.cs
@@ -106,4 +106,16 @@ public class JobsController(ApplicationDbContext dbContext) : Controller
return this.View(job);
}
+
+ public async Task<IActionResult> Logs(Guid id)
+ {
+ var job = await dbContext.Jobs
+ .Include(x => x.Logs.OrderBy(x => x.At))
+ .FirstOrDefaultAsync(x => x.Id == id);
+
+ if (job == null)
+ return this.NotFound();
+
+ return this.View(job);
+ }
} \ No newline at end of file