forked from saurabh/personal-journal
Update personal_journals_controller.rb
This commit is contained in:
parent
175f05168c
commit
d9459be130
|
@ -49,7 +49,6 @@ class PersonalJournalsController < ApplicationController
|
||||||
journal_papers = journal_papers_show_last
|
journal_papers = journal_papers_show_last
|
||||||
else
|
else
|
||||||
end
|
end
|
||||||
journal_papers = JournalPaper.where(:is_hidden=>false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count)
|
|
||||||
journal_paper_list = []
|
journal_paper_list = []
|
||||||
journal_papers.each do |journal_paper|
|
journal_papers.each do |journal_paper|
|
||||||
t = []
|
t = []
|
||||||
|
@ -99,8 +98,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
"total_pages" => journal_papers.total_pages,
|
"total_pages" => journal_papers.total_pages,
|
||||||
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
|
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
|
||||||
"url" => "/"+params[:locale]+params[:url],
|
"url" => "/"+params[:locale]+params[:url],
|
||||||
"all" => journal_papers_show_last,
|
"all" => journal_papers_show_last
|
||||||
"all_n" => JournalPaper.where(:is_hidden=>false).take(100).select {|value| value.paper_title.to_s.include? "2"}
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue