diff --git a/app/views/student_work/_programing_work_show.html.erb b/app/views/student_work/_programing_work_show.html.erb
index c231ab94b..80284dac0 100644
--- a/app/views/student_work/_programing_work_show.html.erb
+++ b/app/views/student_work/_programing_work_show.html.erb
@@ -1,72 +1,61 @@
- - 上交时间:2015-05-07
- - 赞(10)
+ -
+
+ 上交时间:
+
+ <%=format_time @work.created_at %>
+
+ <% if @work.user != User.current%>
+
+ -
+ <%= render :partial => 'student_work_praise' %>
+
+ <% end%>
- - 参与人员:程梦雯 王强
- - 关联项目:Trustie Forge
- - 编程代码:
编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码编程作品代码
+ -
+
+ 编程代码:
+
+
+ <%= textilizable @work.description%>
+
+
+
- 测试结果:
-
- 测试结果一 |
- 错误 |
- 0 |
-
-
- 测试结果二 |
- 正确 |
- 20 |
-
-
- 测试结果三 |
- 正确 |
- 20 |
-
-
- 测试结果四 |
- 正确 |
- 20 |
-
-
- 测试结果五 |
- 正确 |
- 20 |
-
-
- 最后得分 |
- |
- 80 |
-
+ <%@homework.homework_tests.each do |test|%>
+ ">
+
+ <%= test.input%>
+ |
+
+ <%= test.output%>
+ |
+ 错误 |
+ 0 |
+
+ <% end%>
- - 评价:
-
- - 评分:分
- - 批阅结果: -文件不超过200MB提交
+ <% if @is_teacher%>
+
+
+ <%= render :partial => 'add_score',:locals => {:work => @work,:score => @score}%>
+
+ <% end%>
-
-
-
+
+ <%@work.student_works_scores.order("updated_at desc").each do |score|%>
+
+ <%= render :partial => 'student_work_score',:locals => {:score => score}%>
+
+ <% end%>
-
收起
-
+
收起
\ No newline at end of file