diff options
-rw-r--r-- | app/views/setup/show.html.erb | 25 |
1 files 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 %> <br> -<div class="list-group"> - <% if fetch_revision_jobs.count %> - <% fetch_revision_jobs.each do |job| %> - <a href="#" class="list-group-item disabled"> - Fetching - <span style="font-family: monospace;"> - <%= job[:args].first %> - </span> - - <div class="progress pull-right" style="width: 21.2em"> - <div class="progress-bar progress-bar-striped active" role="progressbar" style="width: 100%"> - <span class="sr-only">Fetching revision in progress</span> - </div> - </div> - </a> - <% end %> - <% end %> +<%= render( + partial: 'shared/jobs', + locals: { + jobs: fetch_revision_jobs + } +) %> + +<div class="list-group"> <% GovukGuix::Revision.all.each do |revision| %> <a href="<%= govuk_guix_revision_path(revision) %>" class="list-group-item"> <span class="badge" style="font-family: monospace;"> |