summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/backup_jobs/_index_core.html.haml2
-rw-r--r--app/views/backup_jobs/show.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/backup_jobs/_index_core.html.haml b/app/views/backup_jobs/_index_core.html.haml
index 9dc0e92..0102546 100644
--- a/app/views/backup_jobs/_index_core.html.haml
+++ b/app/views/backup_jobs/_index_core.html.haml
@@ -41,7 +41,7 @@
%td
%span.hidden-phone
- if backup_job.backup_file?
- %a{:href => backup_job.backup_file.current_path}
+ %a{:href => backup_job.backup_file.url}
%i{:class => 'icon-download'}
= number_to_human_size(backup_job.backup_file.size, :precision => 2)
- else
diff --git a/app/views/backup_jobs/show.html.haml b/app/views/backup_jobs/show.html.haml
index 6c55320..6fcb1dc 100644
--- a/app/views/backup_jobs/show.html.haml
+++ b/app/views/backup_jobs/show.html.haml
@@ -15,7 +15,7 @@
%p
%strong= t('backup_jobs.show.size_of_the_backup') + ":"
- if @backup_job.backup_file?
- %a{:href => backup_job.backup_file.current_path}
+ %a{:href => backup_job.backup_file.url}
%i{:class => 'icon-download'}
= number_to_human_size(backup_job.backup_file.size, :precision => 2)