diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb
index 07b4f3823..5743ed321 100644
--- a/app/views/files/index.html.erb
+++ b/app/views/files/index.html.erb
@@ -90,7 +90,7 @@
<% end -%>
<% container.attachments.each do |file| %>
">
- <%= link_to_attachment file, :download => true, :title => file.description %> |
+ <%= link_to_attachment file, :download => true, :title => file.description, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %> |
<%= format_time(file.created_on) %> |
<%= number_to_human_size(file.filesize) %> |
<%= file.downloads %> |
diff --git a/app/views/stores/index.html.erb b/app/views/stores/index.html.erb
index 098c63494..bbdc10913 100644
--- a/app/views/stores/index.html.erb
+++ b/app/views/stores/index.html.erb
@@ -60,9 +60,10 @@
<% end %>
-<% 4.times do |c|%>
+<% @attach_array.each do |c|%>
-
热门<%=c%>
+
+
@@ -71,10 +72,10 @@
- <% @projects_attach.each do |c1|%>
+ <% c.each do |c1|%>
- <%= c1 %> |
- <%= c1.downloads %> ti |
+ <%= link_to_attachment c1 %> |
+ <%= c1.downloads %> |
<% end %>