mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-24 01:38:37 +02:00
Status labels
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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' }
|
||||||
|
|||||||
Reference in New Issue
Block a user