summaryrefslogtreecommitdiff
path: root/app/views/fax_documents
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-19 13:16:12 +0100
committerspag <spag@golwen.net>2013-02-19 13:16:12 +0100
commit2b3892ac24bb61c4814e0afe141bf53765fb1e4b (patch)
tree70baf3eca28ec49fa6edb54dae74122ffb77930f /app/views/fax_documents
parentde845aa642e22b0ae08c5ce991bcdef9b656e079 (diff)
fax storage directory
Diffstat (limited to 'app/views/fax_documents')
-rw-r--r--app/views/fax_documents/_index_core.html.haml2
-rw-r--r--app/views/fax_documents/show.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/fax_documents/_index_core.html.haml b/app/views/fax_documents/_index_core.html.haml
index 5355521..2f9b214 100644
--- a/app/views/fax_documents/_index_core.html.haml
+++ b/app/views/fax_documents/_index_core.html.haml
@@ -50,7 +50,7 @@
- if fax_document.document?
%p
- %a{:href => fax_document.document.url}
+ %a{:href => fax_account_fax_document_path(@fax_account, fax_document, :format => :pdf), :method => :get}
%i{:class => 'icon-download'}
= t("fax_documents.index.actions.download_pdf") + " (#{number_to_human_size(fax_document.document.size, :precision => 2)})"
diff --git a/app/views/fax_documents/show.html.haml b/app/views/fax_documents/show.html.haml
index 9925c2f..b8f3e9e 100644
--- a/app/views/fax_documents/show.html.haml
+++ b/app/views/fax_documents/show.html.haml
@@ -46,7 +46,7 @@
- if @fax_document.document?
%p
- %a{:href => @fax_document.document.url}
+ %a{:href => fax_account_fax_document_path(@fax_account, @fax_document, :format => :pdf), :method => :get}
%i{:class => 'icon-download'}
= t("fax_documents.index.actions.download_pdf") + " (#{number_to_human_size(@fax_document.document.size, :precision => 2)})"