From e09f795171ec41469befaf2cb6df56fc448a265d Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 22 Jan 2016 17:05:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/attachments/_project_file_links.html.erb | 2 +- app/views/messages/_course_show.html.erb | 4 ++-- app/views/messages/_org_subfield_show.html.erb | 4 ++-- app/views/messages/_project_show.html.erb | 4 ++-- app/views/news/_course_show.html.erb | 4 ++-- app/views/news/_project_show.html.erb | 4 ++-- app/views/org_document_comments/show.html.erb | 5 +++-- app/views/organizations/_show_org_document.html.erb | 4 ++-- .../student_work/_work_attachments_status.html.erb | 12 ++++++++++-- app/views/student_work/index.html.erb | 2 +- public/stylesheets/courses.css | 1 + public/stylesheets/public.css | 1 + 12 files changed, 29 insertions(+), 18 deletions(-) diff --git a/app/views/attachments/_project_file_links.html.erb b/app/views/attachments/_project_file_links.html.erb index 3b76689f5..0f7e8a012 100644 --- a/app/views/attachments/_project_file_links.html.erb +++ b/app/views/attachments/_project_file_links.html.erb @@ -37,7 +37,7 @@ <% if options[:length] %> <%= link_to_short_attachment attachment, :class => ' link_file_board', :download => true,:length => options[:length] -%> <% else %> - <%= link_to_short_attachment attachment, :class => ' link_file_board', :download => true -%> + <%= link_to_short_attachment attachment, :length=> 58,:class => 'hidden link_file_a fl newsBlue mw400', :download => true -%> <% end %> <%if is_float%> diff --git a/app/views/messages/_course_show.html.erb b/app/views/messages/_course_show.html.erb index c3278a209..c760e686d 100644 --- a/app/views/messages/_course_show.html.erb +++ b/app/views/messages/_course_show.html.erb @@ -84,8 +84,8 @@ <%= @topic.content.html_safe%>
-
- <%= link_to_attachments_course @topic, :author => false %> +
+ <%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @topic} %>
diff --git a/app/views/messages/_org_subfield_show.html.erb b/app/views/messages/_org_subfield_show.html.erb index 304694b39..6d12fe960 100644 --- a/app/views/messages/_org_subfield_show.html.erb +++ b/app/views/messages/_org_subfield_show.html.erb @@ -113,8 +113,8 @@ <%= @topic.content.html_safe%>
-
- <%= link_to_attachments_course @topic, :author => false %> +
+ <%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @topic} %>
diff --git a/app/views/messages/_project_show.html.erb b/app/views/messages/_project_show.html.erb index e5aba7c02..c98f2983e 100644 --- a/app/views/messages/_project_show.html.erb +++ b/app/views/messages/_project_show.html.erb @@ -139,8 +139,8 @@ <%= @topic.content.html_safe%>
-
- <%= link_to_attachments_course @topic, :author => false %> +
+ <%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @topic} %>
diff --git a/app/views/news/_course_show.html.erb b/app/views/news/_course_show.html.erb index 07aaef26d..767c11553 100644 --- a/app/views/news/_course_show.html.erb +++ b/app/views/news/_course_show.html.erb @@ -89,8 +89,8 @@ <%= @news.description.html_safe%>
-
- <%= link_to_attachments_course @news, :author => false %> +
+ <%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @news} %>
diff --git a/app/views/news/_project_show.html.erb b/app/views/news/_project_show.html.erb index 26ff807db..880bd0885 100644 --- a/app/views/news/_project_show.html.erb +++ b/app/views/news/_project_show.html.erb @@ -89,8 +89,8 @@ <%= @news.description.html_safe%>
-
- <%= link_to_attachments_course @news, :author => false %> +
+ <%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @news} %>
diff --git a/app/views/org_document_comments/show.html.erb b/app/views/org_document_comments/show.html.erb index 26d04924a..405631369 100644 --- a/app/views/org_document_comments/show.html.erb +++ b/app/views/org_document_comments/show.html.erb @@ -29,8 +29,9 @@ <%= @document.content.html_safe %> <% end %> -
- <%= link_to_attachments_course @document, :author => false %> +
+ <%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @document} %> + <%#= link_to_attachments_course @document, :author => false %>