Status labels

This commit is contained in:
Dzmitry Plashchynski
2015-04-12 01:26:40 +03:00
parent 81ee422e30
commit 742cdc00c7
2 changed files with 12 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
%h3 Running Jobs %h2 Running Jobs
%table.bordered#job_list %table.bordered#job_list
%tr %tr
%th Job %th Job
@@ -12,13 +12,19 @@
%td %td
- if job.healthy == false - if job.healthy == false
%a{ href: url("/job/#{job.id}") } %a{ href: url("/job/#{job.id}") }
%span.label.label-danger Error %span.red-text{ title: 'There were problems with this job. Follow the link to check the log.' }
- if job.healthy == true %i.mdi-alert-warning
Error
- elsif job.healthy == true
%a{ href: url("/job/#{job.id}") } %a{ href: url("/job/#{job.id}") }
%span.label.label-success Success %span.green-text.darken-3{ title: 'This job was performed successfully.' }
%i.mdi-action-done
Success
- else - else
%a{ href: url("/job/#{job.id}") } %a{ href: url("/job/#{job.id}") }
%span.label.label-default Pending %span.grey-text.darken-3{ title: 'This job has never been performed yet.' }
%i.mdi-device-access-time
Pending
%td %td
%a{ href: url("/job/#{job.id}") } %a{ href: url("/job/#{job.id}") }
Log Log

View File

@@ -1,7 +1,6 @@
%a{ href: url('/') } << Back to Home %a{ href: url('/') } << Back to Home
%h2 %h4 "#{@job.job_id}" Log:
"#{@job.job_id}" Log:
- if @job.healthy == false - if @job.healthy == false
.alert.alert-danger{ role: 'alert' } .alert.alert-danger{ role: 'alert' }