aboutsummaryrefslogtreecommitdiff
path: root/app/views/govuk_guix/revisions/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/govuk_guix/revisions/show.html.erb')
-rw-r--r--app/views/govuk_guix/revisions/show.html.erb21
1 files changed, 20 insertions, 1 deletions
diff --git a/app/views/govuk_guix/revisions/show.html.erb b/app/views/govuk_guix/revisions/show.html.erb
index d2ab03f..f59b343 100644
--- a/app/views/govuk_guix/revisions/show.html.erb
+++ b/app/views/govuk_guix/revisions/show.html.erb
@@ -31,7 +31,26 @@ License along with the GOV.UK Mini Environment Admin. If not, see
<div class="row">
<div class="col-md-8">
<h2>Store path</h2>
- <pre><%= @revision.store_path %></pre>
+ <% if @revision.archived? %>
+ <del>
+ <pre><%= @revision.store_path %></pre>
+ </del>
+ (Archived)
+ <% else %>
+ <pre><%= @revision.store_path %></pre>
+
+ <%= form_with(
+ url: govuk_guix_revision_path(@revision),
+ local: true,
+ method: "delete"
+ ) do %>
+ <%= submit_tag('Archive',
+ role: 'button',
+ style: 'margin-bottom: 5px;',
+ class: 'btn btn-lg btn-danger btn-block')
+ %>
+ <% end %>
+ <% end %>
</div>
</div>