aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/shared/_jobs.html.erb11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/views/shared/_jobs.html.erb b/app/views/shared/_jobs.html.erb
index 5329661..3dd18c6 100644
--- a/app/views/shared/_jobs.html.erb
+++ b/app/views/shared/_jobs.html.erb
@@ -9,7 +9,16 @@
<% jobs.each do |job| %>
<% job_state = job_states.find { |x| x[:id] == job.id } %>
- <div class="panel panel-default">
+ <% panel_class_suffix = if job.finished_at
+ 'success'
+ elsif job.expired_at
+ 'warning'
+ else
+ 'danger'
+ end
+ %>
+
+ <div class="panel panel-<%= panel_class_suffix %>">
<div class="panel-heading" role="tab" id="jobHeading<%= job.id %>">
<h4 class="panel-title">
<a role="button"