summaryrefslogtreecommitdiff
path: root/app/views/fax_documents/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/fax_documents/show.html.haml')
-rw-r--r--app/views/fax_documents/show.html.haml36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/views/fax_documents/show.html.haml b/app/views/fax_documents/show.html.haml
new file mode 100644
index 0000000..4703e1d
--- /dev/null
+++ b/app/views/fax_documents/show.html.haml
@@ -0,0 +1,36 @@
+- title t("fax_documents.show.page_title")
+- child = @fax_document
+- parent = @fax_document.fax_account
+
+%p
+ %strong= t('fax_documents.index.state') + ":"
+ = t("fax_documents.states.#{@fax_document.state}")
+
+%p
+ %strong= t('fax_documents.index.result_code') + ":"
+ = @fax_document.result_code
+
+%p
+ %strong= t('fax_documents.index.result_text') + ":"
+ = t("fax_documents.result_codes.code_#{@fax_document.result_code}")
+
+%p
+ %strong= t('fax_documents.show.document_transferred_pages') + ":"
+ = @fax_document.document_transferred_pages
+%p
+ %strong= t('fax_documents.show.remote_station_id') + ":"
+ = @fax_document.remote_station_id
+%p
+ %strong= t('fax_documents.show.fax_resolution') + ":"
+ = @fax_document.fax_resolution
+
+- if @fax_document.fax_thumbnails.count > 0
+ - i = @fax_document.fax_thumbnails.count
+ - i = 10 if i > 10
+ - @fax_document.fax_thumbnails.limit(i).each do |fax_thumbnail|
+ =image_tag fax_thumbnail.thumbnail_url(:medium), :class => 'FaxThumbnail', :alt => "Thumbnail of page \##{fax_thumbnail.position}"
+
+- if @fax_document.document.path
+ = link_to t("fax_documents.index.actions.download_pdf"), "#{request.protocol}#{request.host_with_port}#{request.fullpath.split("?")[0]}.pdf"
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @fax_document.fax_account, :child => @fax_document }