From 503ad56e7aeae6050ef98477b3a60f6b4c9f59cf Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 6 Jan 2019 11:27:50 +0000 Subject: Add support for archiving mini environments --- app/views/mini_environments/index.html.erb | 24 ++++++++----- app/views/mini_environments/show.html.erb | 57 +++++++++++++++++++----------- 2 files changed, 52 insertions(+), 29 deletions(-) (limited to 'app/views') diff --git a/app/views/mini_environments/index.html.erb b/app/views/mini_environments/index.html.erb index 3d57c5b..7fb634b 100644 --- a/app/views/mini_environments/index.html.erb +++ b/app/views/mini_environments/index.html.erb @@ -43,18 +43,26 @@ License along with the GOV.UK Mini Environment Admin. If not, see

<%= mini_environment.name %>

- <% if status[:running] %> -
+ <% else %> - + <% if status[:running] %> + + <% else %> + + <% end %> <% end %>
diff --git a/app/views/mini_environments/show.html.erb b/app/views/mini_environments/show.html.erb index 5a6de0b..be7494a 100644 --- a/app/views/mini_environments/show.html.erb +++ b/app/views/mini_environments/show.html.erb @@ -39,32 +39,40 @@ License along with the GOV.UK Mini Environment Admin. If not, see updated at <%= status[:updated_at] %>
- <% if status[:running] %> -
+ <% else %> - - <% end %> + <% if status[:running] %> + + <% else %> + + <% end %> - <% if status[:running] %> -
- - View - + <% if status[:running] %> +
+ + View + + <% end %> <% end %>
"> + "mini_environment/#{@mini_environment.id}" + ) %>"> View Terraform state information
@@ -79,19 +87,26 @@ License along with the GOV.UK Mini Environment Admin. If not, see