blob: 9eebefdb1ef8c82262d2cc8840b8adadbaa04e87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
%table.table.table-striped
%tr
%th= t('backup_jobs.index.started_at')
%th= t('backup_jobs.index.finished_at')
%th= t('backup_jobs.index.state')
%th= t('backup_jobs.index.size_of_the_backup')
%th{:colspan => '2'}
- for backup_job in backup_jobs
- if backup_job.state == 'queued'
- row_marker = 'warning'
- else
- if backup_job.state == 'failed'
- row_marker = 'error'
- else
- row_marker = ''
%tr{:class => row_marker}
- if backup_job.finished_at.blank?
%td{:colspan => '2'}
= time_ago_in_words(backup_job.started_at)
- else
%td
= l backup_job.started_at, :format => :short
%td
= l backup_job.finished_at, :format => :short
%td= backup_job.state
%td
- if backup_job.backup_file?
= number_to_human_size(backup_job.backup_file.size, :precision => 2)
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => backup_job}
|