diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index dc52de3e3..599f27215 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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")
diff --git a/app/views/attachments/_project_file_links.html.erb b/app/views/attachments/_project_file_links.html.erb
index d32025787..97cbefce9 100644
--- a/app/views/attachments/_project_file_links.html.erb
+++ b/app/views/attachments/_project_file_links.html.erb
@@ -5,7 +5,7 @@
<%if is_float%>
<% end%>
-
+
<% if options[:length] %>
<%= link_to_short_attachment attachment, :class => ' link_file_board', :download => true,:length => options[:length] -%>
<% else %>
@@ -53,7 +53,7 @@
<% end %>
<% if options[:author] %>
- <%= link_to h(truncate(attachment.author.name, length: 10, omission: '...')),user_path(attachment.author) %>,
+ <%= link_to h(truncate(attachment.author.name, length: 10, omission: '...')),user_path(attachment.author),:class => "c_orange ml20" %>,
<%= format_time(attachment.created_on) %>
<% end %>
@@ -62,11 +62,9 @@
<% if defined?(thumbnails) && thumbnails %>
<% images = attachments.select(&:thumbnailable?) %>
<% if images.any? %>
-
<% images.each do |attachment| %>
-
<%= thumbnail_tag(attachment) %>
+
<%= thumbnail_issue_tag(attachment) %>
<% end %>
-
<% end %>
<% end %>
diff --git a/app/views/issues/_edit.html.erb b/app/views/issues/_edit.html.erb
index fa3153012..1266f4611 100644
--- a/app/views/issues/_edit.html.erb
+++ b/app/views/issues/_edit.html.erb
@@ -18,7 +18,7 @@
<%= render :partial => 'history', :locals => {:issue => @issue, :journals => @journals} %>
<% end %>
-