|
|
|
@ -325,6 +325,20 @@ module ApplicationHelper
|
|
|
|
|
:title => attachment.filename
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def thumbnail_issue_tag(attachment)
|
|
|
|
|
imagesize = attachment.thumbnail(:size => "50*50")
|
|
|
|
|
imagepath = named_attachment_path(attachment, attachment.filename)
|
|
|
|
|
if imagesize
|
|
|
|
|
link_to image_tag(imagesize),
|
|
|
|
|
imagepath,
|
|
|
|
|
:title => attachment.filename
|
|
|
|
|
else
|
|
|
|
|
link_to image_tag(imagepath , height: '73', width: '100'),
|
|
|
|
|
imagepath,
|
|
|
|
|
:title => attachment.filename
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 图片缩略图链接
|
|
|
|
|
def thumbnail_small_tag(attachment)
|
|
|
|
|
imagesize = attachment.thumbnail(:size => "200*200")
|
|
|
|
|