forked from saurabh/personal-journal
Update personal_journals_controller.rb
This commit is contained in:
parent
fabd331bdf
commit
dd492dfc9d
|
@ -48,8 +48,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
else
|
else
|
||||||
page_to_show = params[:page_no].to_i
|
page_to_show = params[:page_no].to_i
|
||||||
end
|
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[(page_to_show-1)*OrbitHelper.page_data_count...page_to_show*OrbitHelper.page_data_count]
|
||||||
journal_papers = journal_papers_show_last
|
|
||||||
journal_papers_total_pages = (journal_papers_show.length/OrbitHelper.page_data_count.to_f).ceil
|
journal_papers_total_pages = (journal_papers_show.length/OrbitHelper.page_data_count.to_f).ceil
|
||||||
timer = Time.now-t
|
timer = Time.now-t
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue