From 5ed40da76f613eb30ef7c55c50b097ffeff53525 Mon Sep 17 00:00:00 2001 From: yanxd Date: Wed, 2 Apr 2014 08:22:02 +0800 Subject: [PATCH] =?UTF-8?q?course=E9=A1=B5=E9=9D=A2=EF=BC=8Cxx=E4=BB=BD?= =?UTF-8?q?=E8=B5=84=E6=96=99=E4=B8=8A=E5=8A=A0=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/welcome/course.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb index ca8e29b88..db1c1ea81 100644 --- a/app/views/welcome/course.html.erb +++ b/app/views/welcome/course.html.erb @@ -125,7 +125,8 @@ [<%= get_course_term project %>] <%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name",:title => "#{project.name}" )%> (<%= link_to "#{studentCount(project)}人", project_member_path(project, :role => 2) ,:course =>'1' %>) - (<%=(project.attachments.count.to_i+Version.joins(:project).where("projects.id=#{project.id}").count.to_i).to_s%>份资料) + <% files_count = (project.attachments.count.to_i+Version.joins(:project).where("projects.id=#{project.id}").count.to_i).to_s %> + (<%=link_to "#{files_count}份", project_files_path(project) %>资料)