summaryrefslogtreecommitdiff
path: root/app/views/backup_jobs/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/backup_jobs/show.html.haml')
-rw-r--r--app/views/backup_jobs/show.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/backup_jobs/show.html.haml b/app/views/backup_jobs/show.html.haml
index 65091b8..5d85bbc 100644
--- a/app/views/backup_jobs/show.html.haml
+++ b/app/views/backup_jobs/show.html.haml
@@ -14,6 +14,7 @@
= @backup_job.directory
%p
%strong= t('backup_jobs.show.size_of_the_backup') + ":"
- = number_to_human_size(@backup_job.size_of_the_backup, :precision => 2)
+ - if @backup_job.backup_file?
+ = number_to_human_size(@backup_job.backup_file.size, :precision => 2)
= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @backup_job } \ No newline at end of file