From efc2874b6c8fd64cdbece1996412d4dafc334397 Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Mon, 26 Sep 2016 16:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 2 +- app/views/layouts/_course_base_info.html.erb | 2 +- app/views/layouts/_user_courses.html.erb | 11 ++++++----- app/views/layouts/_user_projects.html.erb | 15 +++++++++++---- app/views/users/_project_issue.html.erb | 2 ++ app/views/users/_project_message.html.erb | 5 ++++- app/views/users/_user_activities.html.erb | 2 +- 7 files changed, 26 insertions(+), 13 deletions(-) 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 %>