summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-11 17:44:09 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-11 17:44:09 +0100
commitb5cb8b7fa389c0a542825173b058dfcf428f6680 (patch)
treec589c33a0c4ea12db37f0b760663683412bd7083 /app/views
parent0ba495685589e99e1100af6d7af9d69ee4f40b78 (diff)
Fix URL
Diffstat (limited to 'app/views')
-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)