aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-07-22 01:44:33 +0100
committerFrancis Irving <francis@mysociety.org>2010-07-22 01:44:33 +0100
commitb8f1047ed46ba3ac08cbb9bf62796b2940eac378 (patch)
tree08d78b4b0d4407439208b6c4587f92a9d4202598
parent677b93df762176a0be75ab3ceba712264977c30c (diff)
Show names right of types in HTML preview for Google Docs
-rw-r--r--app/models/incoming_message.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index e69b80645..81c9ade0f 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -350,7 +350,7 @@ class FOIAttachment
def name_of_content_type
if self.content_type == 'text/plain'
return "Text file"
- elsif self.content_type == 'application/vnd.ms-word'
+ elsif self.content_type == 'application/vnd.ms-word' or self.content_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
return "Word document"
elsif self.content_type == 'application/vnd.ms-excel'
return "Excel spreadsheet"
@@ -358,6 +358,10 @@ class FOIAttachment
return "PDF file"
elsif self.content_type == 'application/rtf'
return "RTF file"
+ elsif self.content_type == 'application/vnd.ms-powerpoint'
+ return "PowerPoint presentation"
+ elsif self.content_type == 'image/tiff'
+ return "TIFF image"
end
end