summaryrefslogtreecommitdiff
path: root/app/views/fax_documents/show.html.haml
blob: de8c1cc0bcbb4916a8a564f518bc90f3a4e9b3fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- content_for :title, t("fax_documents.show.page_title")
- child = @fax_document
- parent = @fax_document.fax_account

%table.table.table-striped
  %tr
    %td
      %strong= t('fax_documents.index.state') + ":"
    %td
      = t("fax_documents.states.#{@fax_document.state}")
  %tr
    %td
      %strong= t('fax_documents.index.result_code') + ":"
    %td
      = @fax_document.result_code
  %tr
    %td
      %strong= t('fax_documents.index.result_text') + ":"
    %td
      = t("fax_documents.result_codes.code_#{@fax_document.result_code}")
  %tr
    %td
      %strong= t('fax_documents.show.document_transferred_pages') + ":"
    %td
      = @fax_document.document_transferred_pages
  %tr
    %td
      %strong= t('fax_documents.show.remote_station_id') + ":"
    %td
      = @fax_document.remote_station_id
  %tr
    %td
      %strong= t('fax_documents.show.fax_resolution') + ":"
    %td
      = @fax_document.fax_resolution

- if @fax_document.fax_thumbnails.count > 0
  - i = @fax_document.fax_thumbnails.count
  - i = 10 if i > 10
  %p
    - @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
  %p
    %a{:href => "#{request.protocol}#{request.host_with_port}#{request.fullpath.split("?")[0]}.pdf"}
      %i{:class => 'icon-download'}
      = t("fax_documents.index.actions.download_pdf")
  
= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @fax_document.fax_account, :child => @fax_document }