Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-15 08:49:54 +08:00
parent fabd331bdf
commit dd492dfc9d
1 changed files with 1 additions and 2 deletions

View File

@ -48,8 +48,7 @@ class PersonalJournalsController < ApplicationController
else
page_to_show = params[:page_no].to_i
end
journal_papers_show_last = journal_papers_show[(page_to_show-1)*OrbitHelper.page_data_count...page_to_show*OrbitHelper.page_data_count]
journal_papers = journal_papers_show_last
journal_papers = journal_papers_show[(page_to_show-1)*OrbitHelper.page_data_count...page_to_show*OrbitHelper.page_data_count]
journal_papers_total_pages = (journal_papers_show.length/OrbitHelper.page_data_count.to_f).ceil
timer = Time.now-t
else