From 762ebb150ba875d5c6a2717e37d4f3a860a1cf37 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 8 Jan 2016 18:09:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=AF=BE=E7=A8=8B=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E9=87=8D=E5=A4=8D=E5=88=86=E9=A1=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/files_controller.rb | 2 +- app/views/files/_course_file.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb index 6a27a1a1a..59b0f6f03 100644 --- a/app/controllers/files_controller.rb +++ b/app/controllers/files_controller.rb @@ -280,7 +280,7 @@ class FilesController < ApplicationController render :layout => 'base_projects' elsif params[:course_id] @container_type = 1 - @page = params[:page] ? params[:page].to_i + 2 : 0 + @page = params[:page] ? params[:page].to_i + 1 : 2 if params[:sort] params[:sort].split(",").each do |sort_type| order_by = sort_type.split(":") diff --git a/app/views/files/_course_file.html.erb b/app/views/files/_course_file.html.erb index 6728128d4..5a6ce69ce 100644 --- a/app/views/files/_course_file.html.erb +++ b/app/views/files/_course_file.html.erb @@ -123,7 +123,7 @@
- <%= render :partial => 'course_list',:locals => {course: @course,all_attachments: @all_attachments,sort:@sort,order:@order,curse_attachments:@obj_attachments, :page=>1} %> + <%= render :partial => 'course_list',:locals => {course: @course,all_attachments: @all_attachments,sort:@sort,order:@order,curse_attachments:@obj_attachments, :page=>2} %>
<% html_title(l(:label_attachment_plural)) -%> \ No newline at end of file