image view of attachmnts
This commit is contained in:
parent
da8d0e4389
commit
f3a3c6bded
|
@ -103,7 +103,7 @@ class MessagesController < ApplicationController
|
||||||
a = attachments[idx]
|
a = attachments[idx]
|
||||||
a.idx = idx
|
a.idx = idx
|
||||||
a.parent_id = @message.uid
|
a.parent_id = @message.uid
|
||||||
if a.isImage?
|
if a.isImage? and @current_user.prefs.msg_image_view_as.to_sym.eql?(:thumbnail)
|
||||||
@images << a
|
@images << a
|
||||||
else
|
else
|
||||||
@attachments << a
|
@attachments << a
|
||||||
|
@ -116,7 +116,7 @@ class MessagesController < ApplicationController
|
||||||
part.parent_id = @message.uid
|
part.parent_id = @message.uid
|
||||||
if part.isText?
|
if part.isText?
|
||||||
@text_part = part.decoded_and_charseted
|
@text_part = part.decoded_and_charseted
|
||||||
elsif part.isImage? and @current_user.prefs.msg_image_view_as.to_sym == :thumbnail
|
elsif part.isImage? and @current_user.prefs.msg_image_view_as.to_sym.eql?(:thumbnail)
|
||||||
@images << part
|
@images << part
|
||||||
elsif part.isHtml?
|
elsif part.isHtml?
|
||||||
@html_part = part.decoded_and_charseted
|
@html_part = part.decoded_and_charseted
|
||||||
|
|
Loading…
Reference in a new issue