aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/mini_environments/show.html.erb9
-rw-r--r--app/views/setup/show.html.erb24
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,