diff --git a/app/controllers/applied_project_controller.rb b/app/controllers/applied_project_controller.rb index 30978367c..e7909e20d 100644 --- a/app/controllers/applied_project_controller.rb +++ b/app/controllers/applied_project_controller.rb @@ -5,6 +5,9 @@ class AppliedProjectController < ApplicationController if params[:object_id] @project = Project.find_by_id(params[:object_id]) end + if params[:is_teacher] + @is_teacher = 1 + end # @user_id = params[:user_id] # if params[:project_join] # if @project diff --git a/app/views/applied_project/_applied_join_project.html.erb b/app/views/applied_project/_applied_join_project.html.erb index e2c447992..2e2f657d6 100644 --- a/app/views/applied_project/_applied_join_project.html.erb +++ b/app/views/applied_project/_applied_join_project.html.erb @@ -6,11 +6,19 @@
<%= student_work.project.name %>
-创建者:刘逸舟成员数量:5
-项目综合得分:106703
-= 代码提交得分 + issue得分 + 资源得分 + 讨论区得分
-= 67716 + 38679 + 80 + 20
+<%= project.name %>
+创建者:<%=project.creater %>成员数量:<%=project.members.count %>
+ <% project_score = project.project_score %> +项目综合得分:<%=static_project_score(project_score).to_i %>
+= 代码提交得分 + issue得分 + 资源得分 + 帖子得分
+= <%=(project_score.changeset_num||0) * 4 %> + <%=project_score.issue_num * 4 + project_score.issue_journal_num %> + <%=project_score.attach_num * 5 %> + <%=project_score.board_num * 2 + project_score.board_message_num + project_score.news_num %>