diff options
author | Christopher Baines <mail@cbaines.net> | 2018-07-06 10:00:29 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-07-06 10:00:29 +0100 |
commit | a104debbcbdffc7ff7acfae9aed2c744608d6ad8 (patch) | |
tree | bce6adc33ab06564671159d7bc4ec41f0ecd17ea | |
parent | 31f3df017bc2a35aeefc1a2fcfd5ae1f25667acb (diff) | |
download | govuk-mini-environment-admin-a104debbcbdffc7ff7acfae9aed2c744608d6ad8.tar govuk-mini-environment-admin-a104debbcbdffc7ff7acfae9aed2c744608d6ad8.tar.gz |
Display some basic details about data snapshots
-rw-r--r-- | app/views/mini_environments/show.html.erb | 9 | ||||
-rw-r--r-- | app/views/setup/show.html.erb | 24 |
2 files changed, 33 insertions, 0 deletions
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 %> </ul> +<p> + <% if @mini_environment.data_snapshot %> + <strong>Data Snapshot:</strong> + <%= @mini_environment.data_snapshot.description %> + <% else %> + No data snapshot used. + <% end %> +</p> + <h3>Initial Signon Users</h3> <table class="table table-bordered table-hover"> 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 </div> <% end %> +<h1>Data Snapshots</h1> + +<table class="table"> + <thead> + <tr> + <th>Description</th> + <th>Backend</th> + </tr> + </thead> + <tbody> + <% GovukGuix::DataSnapshot.order(id: :desc).each do |data_snapshot| %> + <tr> + <td> + <%= data_snapshot.description %> + </td> + <td> + <%= data_snapshot.backend.try(:class).try(:label) %>: + <%= data_snapshot.backend.try(:label) %> + </td> + </tr> + <% end %> + </tbody> +</table> + <h1>Revisions</h1> <%= form_with(url: enqueue_fetch_govuk_guix_revision_path, |