diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index bdbaf1738..860e4ca30 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1724,7 +1724,7 @@ class UsersController < ApplicationController end end - @user_activities = UserActivity.where("#{sql}").order('updated_at desc').limit(10).offset(@page * 10) + @user_activities = UserActivity.where("#{sql}").order('updated_at desc').limit(5).offset(@page * 5) @type = params[:type] respond_to do |format| format.js diff --git a/app/views/layouts/_course_base_info.html.erb b/app/views/layouts/_course_base_info.html.erb index 469382b48..6428aa5fa 100644 --- a/app/views/layouts/_course_base_info.html.erb +++ b/app/views/layouts/_course_base_info.html.erb @@ -59,7 +59,7 @@ <% end %>