diff options
author | Christopher Baines <mail@cbaines.net> | 2018-07-05 14:13:20 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-07-05 14:13:20 +0100 |
commit | 9653fb4c7b9fa4092160f6b37ec393add132d171 (patch) | |
tree | 9f7f6481fd700dcd555efc4e2303c7d0c47c4d82 | |
parent | e6e5ad0a853a5e6b1bf5f6a50e6044faf8252035 (diff) | |
download | govuk-mini-environment-admin-9653fb4c7b9fa4092160f6b37ec393add132d171.tar govuk-mini-environment-admin-9653fb4c7b9fa4092160f6b37ec393add132d171.tar.gz |
Use the jobs partial on the setup page
For the fetch revision jobs.
-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;"> |