summaryrefslogtreecommitdiff
path: root/src/marlin.web/Controllers/JobsController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/marlin.web/Controllers/JobsController.cs')
-rw-r--r--src/marlin.web/Controllers/JobsController.cs12
1 files changed, 12 insertions, 0 deletions
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