forked from saurabh/personal-journal
Update personal_journals_controller.rb
This commit is contained in:
parent
7d66f3b766
commit
2cfa88978d
|
@ -32,7 +32,6 @@ class PersonalJournalsController < ApplicationController
|
|||
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
|
||||
else
|
||||
end
|
||||
journal_paper_list = []
|
||||
|
@ -84,7 +83,7 @@ class PersonalJournalsController < ApplicationController
|
|||
"total_pages" => journal_papers.total_pages,
|
||||
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
|
||||
"url" => "/"+params[:locale]+params[:url],
|
||||
"all" => journal_papers_show,
|
||||
"all" => journal_papers_show_last,
|
||||
"all_n" => JournalPaper.where(:is_hidden=>false).count
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue