From 1f43c32aa4288f5aafafc426cfb955f84732d9e3 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 7 Apr 2018 15:30:44 +0100 Subject: Improve the handling of jobs Move the display in to a partial and improve. Handle the finished and enqueued jobs in a more consistent way. --- app/controllers/mini_environments_controller.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/controllers') diff --git a/app/controllers/mini_environments_controller.rb b/app/controllers/mini_environments_controller.rb index 639ea0a..6f31e70 100644 --- a/app/controllers/mini_environments_controller.rb +++ b/app/controllers/mini_environments_controller.rb @@ -78,4 +78,13 @@ class MiniEnvironmentsController < ApplicationController render 'show' end + + def jobs + [ + MiniEnvironmentJob.jobs(@mini_environment.id), + GovukGuix::BuildJob.jobs(@mini_environment.id) + ].flatten + end + + helper_method :jobs end -- cgit v1.2.3