summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-06 12:19:23 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-06 12:19:23 +0100
commitc26e4b9d27218378f34175ac3410eab5b12a5713 (patch)
tree3530acc0147faccde00d1007ec4d2fa21c0315c8 /app/views
parent16a2074982644614f3ef13c15681b5c89feb586b (diff)
View improvements.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/backup_jobs/_index_core.html.haml18
1 files changed, 10 insertions, 8 deletions
diff --git a/app/views/backup_jobs/_index_core.html.haml b/app/views/backup_jobs/_index_core.html.haml
index aceeb5b..a706424 100644
--- a/app/views/backup_jobs/_index_core.html.haml
+++ b/app/views/backup_jobs/_index_core.html.haml
@@ -3,7 +3,6 @@
%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')
%th{:colspan => '2'}
@@ -17,13 +16,16 @@
- else
- row_marker = ''
%tr{:class => row_marker}
- %td
- - if backup_job.finished_at.blank?
- = time_ago_in_words(backup_job.finished_at)
- - else
+ - 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
+ = 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)
+ %td
+ - if !backup_job.size_of_the_backup.blank?
+ = number_to_human_size(backup_job.size_of_the_backup, :precision => 2)
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => backup_job} \ No newline at end of file