blob: a1bf0d0aa792ec95239a5c2f8fe2bbf75b91ec2c (
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
|
%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.directory')
%th= t('backup_jobs.index.size_of_the_backup')
- 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}
%td
- if backup_job.finished_at.blank?
= time_ago_in_words(backup_job.finished_at)
- else
= l backup_job.started_at, :format => :short
%td= l backup_job.finished_at, :format => :short
%td= backup_job.state
%td= backup_job.directory
%td= number_to_human_size(backup_job.size_of_the_backup, :precision => 2)
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => backup_job}
|