From 0b6f35055dd977931ef9a985f48dd80fde31e136 Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Tue, 26 May 2015 17:44:39 +0800 Subject: [PATCH] Signed-off-by: alan <547533434@qq.com> --- app/views/layouts/_user_courses_list.html.erb | 2 +- app/views/layouts/base_projects.html.erb | 4 + .../projects/_development_group.html.erb | 73 ++++++++++--------- app/views/projects/_research_team.html.erb | 3 +- 4 files changed, 46 insertions(+), 36 deletions(-) diff --git a/app/views/layouts/_user_courses_list.html.erb b/app/views/layouts/_user_courses_list.html.erb index 250ab1d5f..29366eb0e 100644 --- a/app/views/layouts/_user_courses_list.html.erb +++ b/app/views/layouts/_user_courses_list.html.erb @@ -3,7 +3,7 @@ <%=link_to l(:label_my_course), user_courses_user_path(User.current.id) %> +<% end %> \ No newline at end of file diff --git a/app/views/projects/_research_team.html.erb b/app/views/projects/_research_team.html.erb index b2b0e3c33..21a6ab31c 100644 --- a/app/views/projects/_research_team.html.erb +++ b/app/views/projects/_research_team.html.erb @@ -1,3 +1,4 @@ +<% cache @project %> <% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %> -<% end%> \ No newline at end of file +<% end%>