From 9653fb4c7b9fa4092160f6b37ec393add132d171 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 5 Jul 2018 14:13:20 +0100 Subject: Use the jobs partial on the setup page For the fetch revision jobs. --- app/views/setup/show.html.erb | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/app/views/setup/show.html.erb b/app/views/setup/show.html.erb index cc1d094..172508e 100644 --- a/app/views/setup/show.html.erb +++ b/app/views/setup/show.html.erb @@ -70,24 +70,15 @@ License along with the GOV.UK Mini Environment Admin. If not, see <% end %>
-
- <% if fetch_revision_jobs.count %> - <% fetch_revision_jobs.each do |job| %> - - Fetching - - <%= job[:args].first %> - - -
-
- Fetching revision in progress -
-
-
- <% end %> - <% end %> +<%= render( + partial: 'shared/jobs', + locals: { + jobs: fetch_revision_jobs + } +) %> + +
<% GovukGuix::Revision.all.each do |revision| %> -- cgit v1.2.3