diff --git a/app/views/blogs/_article.html.erb b/app/views/blogs/_article.html.erb index 8ddc3062d..9e13cbafc 100644 --- a/app/views/blogs/_article.html.erb +++ b/app/views/blogs/_article.html.erb @@ -1,7 +1,7 @@
博客列表
diff --git a/app/views/courses/member.html.erb b/app/views/courses/member.html.erb index 2d2eecab1..606c0d67c 100644 --- a/app/views/courses/member.html.erb +++ b/app/views/courses/member.html.erb @@ -4,7 +4,7 @@
<%= project.name %>
+<%= project.name %><%= project.status == 9 ? "(已删除)" : ""%>
创建者:<%= project.creater %>成员数量:<%= project.members.count %>
<% project_score = project.project_score %> -项目综合得分:<%= static_project_score(project_score).to_i %>
+项目综合得分:<%= project.status == 9 ? 0 : static_project_score(project_score).to_i %>
+ <% if project.status != 9 %>= 代码提交得分 + 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 %>
+ <% end %>- 创建老师:<%=link_to course.teacher.show_name, user_path(course.teacher), :class => 'sy_cblue' %> +
讨论区列表
<%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>content, :maxheight=>54, :maxwordsnum=>75, :maxwidth=>563} %>
-通知列表
<%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>activity.description, :maxheight=>54, :maxwordsnum=>100, :maxwidth=>563} %>
+ <% u = User.where("id=?",activity.author_id).first%> +讨论区列表
<%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>content, :maxheight=>54, :maxwordsnum=>225, :maxwidth=>950} %>
-课程列表
项目列表