aboutsummaryrefslogtreecommitdiff
path: root/app/views/shared/_jobs.html.erb
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-03 21:25:18 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-03 21:25:18 +0100
commitf3be2cae65188335f95dbe9a8c892dd8f330aa31 (patch)
tree442c011f99a485c93c303fc00030ae8640b2ca06 /app/views/shared/_jobs.html.erb
parent38a8dd800d27e3ee054eab50bb218b094530e5f8 (diff)
downloadgovuk-mini-environment-admin-f3be2cae65188335f95dbe9a8c892dd8f330aa31.tar
govuk-mini-environment-admin-f3be2cae65188335f95dbe9a8c892dd8f330aa31.tar.gz
Improve the jobs partial
Fix some of the ids, add a caret, and improve the line length.
Diffstat (limited to 'app/views/shared/_jobs.html.erb')
-rw-r--r--app/views/shared/_jobs.html.erb16
1 files changed, 11 insertions, 5 deletions
diff --git a/app/views/shared/_jobs.html.erb b/app/views/shared/_jobs.html.erb
index e70e8ef..a151389 100644
--- a/app/views/shared/_jobs.html.erb
+++ b/app/views/shared/_jobs.html.erb
@@ -1,21 +1,23 @@
<div class="panel-group"
- id="accordion"
+ id="jobs"
role="tablist"
aria-multiselectable="true">
<% jobs.each do |job| %>
<div class="panel panel-default">
- <div class="panel-heading" role="tab" id="headingOne">
+ <div class="panel-heading" role="tab" id="jobHeading<%= job.id %>">
<h4 class="panel-title">
<a role="button"
data-toggle="collapse"
data-parent="#accordion"
- href="#collapseOne"
+ href="#job_<%= job.id %>"
aria-expanded="true"
- aria-controls="collapseOne">
+ aria-controls="job_<%= job.id %>"
+ >
<%= job.job_class %>
+ <span class="caret"></span>
</a>
<span class="pull-right">
<% if job.instance_of? FinishedTerraformJob %>
@@ -29,7 +31,11 @@
</span>
</h4>
</div>
- <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
+ <div id="job_<%= job.id %>"
+ class="panel-collapse collapse in"
+ role="tabpanel"
+ aria-labelledby="jobHeading<%= job.id %>"
+ >
<div class="panel-body">
<div class="row">
<div class="col-md-10">