From f79be6cf0430cb8da72e69b253b1b0a7b643ebce Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 22 Jun 2018 07:56:21 +0100 Subject: Use the status information on the mini environment index page --- app/views/mini_environments/index.html.erb | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/app/views/mini_environments/index.html.erb b/app/views/mini_environments/index.html.erb index ab285f9..afbeebe 100644 --- a/app/views/mini_environments/index.html.erb +++ b/app/views/mini_environments/index.html.erb @@ -32,6 +32,8 @@ License along with the GOV.UK Mini Environment Admin. If not, see
<% MiniEnvironment.all.each do |mini_environment| %> + <% status = mini_environment.status %> +
@@ -39,9 +41,19 @@ License along with the GOV.UK Mini Environment Admin. If not, see

<%= mini_environment.name %>

- + <% if status[:running] %> + + <% else %> + + <% end %>