diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index c4f083bee..3ad63a948 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -311,7 +311,8 @@ class CoursesController < ApplicationController when '2' @subPage_title = l :label_student_list page = params[:page].nil? ? 0 : (params['page'].to_i - 1) - @all_members = student_homework_score(0,page, 10,"desc") + # @all_members = student_homework_score(0,page, 10,"desc") + @all_members = @course.members @members = paginateHelper_for_members @all_members, 10 end respond_to do |format| diff --git a/app/views/courses/_course_student.html.erb b/app/views/courses/_course_student.html.erb new file mode 100644 index 000000000..92ca7b983 --- /dev/null +++ b/app/views/courses/_course_student.html.erb @@ -0,0 +1,173 @@ +
+ +
+
+ +
+
+
+ +
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+ 学生 + + 4.2 + 2014-11-27 +
+
+
+
+ + +
\ No newline at end of file diff --git a/app/views/courses/member.html.erb b/app/views/courses/member.html.erb index 07b8cfbf8..e5a87da11 100644 --- a/app/views/courses/member.html.erb +++ b/app/views/courses/member.html.erb @@ -48,27 +48,7 @@

<%= @subPage_title%>

<% if @subPage_title == l(:label_student_list)%> -
- -
- <% if @subPage_title == l(:label_student_list) %> -
- <%= render :partial => 'groups_name', :locals => {:course_groups => @course_groups} %> -
- <% end %> - -
- -
- <%= error_messages_for 'member' %> - <%= render :partial => @render_file, :locals => {:members => @members} %> -
-
+ <%= render :partial => 'course_student', :locals => {:members => @members} %> <% else%> <%= render :partial => 'course_teacher', :locals => {:members => @members} %> <% end%>