<%# GOV.UK Mini Environment Admin Copyright © 2018 Christopher Baines This file is part of the GOV.UK Mini Environment Admin. The GOV.UK Mini Environment Admin is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The GOV.UK Mini Environment Admin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with the GOV.UK Mini Environment Admin. If not, see . %> Back to list

Name: <%= @mini_environment.name %>


<% status = @mini_environment.status %>
Current Status
updated at <%= status[:updated_at] %>
<% if status[:running] %> <% else %> <% end %> <% if status[:running] %>
View <% end %>
"> View Terraform state information
<%= form_with(url: mini_environment_perform_action_path(@mini_environment), local: true, method: "post") do %>
Actions
    <% if status[:running] %>
  • <%= submit_tag("Destroy", role: 'button', class: 'btn btn-lg btn-danger btn-block') %>
  • <% else %>
  • <%= submit_tag('Start', disabled: !@mini_environment.backend_data.present?, role: 'button', class: 'btn btn-lg btn-success btn-block') %>
  • <% end %>
  • <%= submit_tag('Refresh', disabled: @mini_environment.terraform_states.empty?, role: 'button', class: 'btn btn-lg btn-info btn-block') %>
<% end %>
<%= render( partial: 'shared/jobs', locals: { jobs: MiniEnvironmentJob.jobs(@mini_environment.id).order(id: :desc) } ) %>

Services

<% customised_services = @mini_environment.services.select(&:customised?) %> <% uncustomised_services = @mini_environment.services.reject(&:customised?) %> Plus <%= uncustomised_services.length %> other services at the revision specified in the revision of GOV.UK Guix (show revision details): <% multi_column = (uncustomised_services.length > 6) %>

Initial Signon Users

<% @mini_environment.signon_users.each do |user| %> <% %w[name email role passphrase].each do |field| %> <% end %> <% end %>
Name Email Address Role Passphrase
<%= user[field] %>