diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 896e29053..df2513782 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -6,6 +6,7 @@ class StudentWorkController < ApplicationController before_filter :author_of_work, :only => [:edit, :update, :destroy] def index + @stundet_works = @homework.student_works.order("final_score desc") respond_to do |format| format.html end @@ -55,7 +56,9 @@ class StudentWorkController < ApplicationController end def show - + respond_to do |format| + format.js + end end def destroy diff --git a/app/views/student_work/_show.html.erb b/app/views/student_work/_show.html.erb index 747cfecf8..cb3f0181a 100644 --- a/app/views/student_work/_show.html.erb +++ b/app/views/student_work/_show.html.erb @@ -1,96 +1,94 @@ -
-
-
- -
- 收起 +
- - \ No newline at end of file + + +收起 +
+ \ No newline at end of file diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb index 44ac58bf7..258d26cf9 100644 --- a/app/views/student_work/index.html.erb +++ b/app/views/student_work/index.html.erb @@ -13,6 +13,12 @@ + + +
+