diff options
Diffstat (limited to 'src/marlin.web/Controllers')
| -rw-r--r-- | src/marlin.web/Controllers/HomeController.cs | 5 | ||||
| -rw-r--r-- | src/marlin.web/Controllers/JobsController.cs | 12 |
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 |
