From a104debbcbdffc7ff7acfae9aed2c744608d6ad8 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 6 Jul 2018 10:00:29 +0100 Subject: Display some basic details about data snapshots --- app/views/mini_environments/show.html.erb | 9 +++++++++ app/views/setup/show.html.erb | 24 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/app/views/mini_environments/show.html.erb b/app/views/mini_environments/show.html.erb index 6b7871d..0f166f6 100644 --- a/app/views/mini_environments/show.html.erb +++ b/app/views/mini_environments/show.html.erb @@ -142,6 +142,15 @@ at the revision specified in the revision of GOV.UK Guix <% end %> +

+ <% if @mini_environment.data_snapshot %> + Data Snapshot: + <%= @mini_environment.data_snapshot.description %> + <% else %> + No data snapshot used. + <% end %> +

+

Initial Signon Users

diff --git a/app/views/setup/show.html.erb b/app/views/setup/show.html.erb index 172508e..01b1f32 100644 --- a/app/views/setup/show.html.erb +++ b/app/views/setup/show.html.erb @@ -44,6 +44,30 @@ License along with the GOV.UK Mini Environment Admin. If not, see <% end %> +

Data Snapshots

+ +
+ + + + + + + + <% GovukGuix::DataSnapshot.order(id: :desc).each do |data_snapshot| %> + + + + + <% end %> + +
DescriptionBackend
+ <%= data_snapshot.description %> + + <%= data_snapshot.backend.try(:class).try(:label) %>: + <%= data_snapshot.backend.try(:label) %> +
+

Revisions

<%= form_with(url: enqueue_fetch_govuk_guix_revision_path, -- cgit v1.2.3