<%# 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 %> <% if status[:running] %> View <%= form_with(url: mini_environment_perform_action_path(@mini_environment), local: true, method: "post") do %> <%= submit_tag("Destroy", role: 'button', class: 'btn btn-lg btn-danger') %> <% end %> <% else %> <%= form_with(url: mini_environment_perform_action_path(@mini_environment), local: true, method: "post") do %> <%= submit_tag('Start the mini environment', disabled: !@mini_environment.backend_data.present?, role: 'button', class: 'btn btn-lg btn-success') %> <% end %> <% end %>
<% if @mini_environment.backend_data.present? %>
<% @mini_environment.backend_data.each do |(key, value)| %>
<%= key %>
<%= value %>
<% end %>
<% end %> <%= render( partial: 'shared/jobs', locals: { jobs: jobs } ) %>

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] %>