From d0d36186df3fb0664fb8043f207e908815b7f256 Mon Sep 17 00:00:00 2001 From: nieguanghui Date: Mon, 13 Jan 2014 20:46:27 +0800 Subject: [PATCH] modified table style --- app/views/files/index.html.erb | 2 +- app/views/stores/index.html.erb | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) 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|%> - - + + <% end %>
<%= c1 %><%= c1.downloads %> ti<%= link_to_attachment c1 %><%= c1.downloads %>