forked from saurabh/personal-journal
Update personal_journals_controller.rb
This commit is contained in:
parent
1bbca25a7e
commit
9ce82a25f0
|
@ -20,7 +20,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
"paper_title"
|
"paper_title"
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
if params.selectbox != nil
|
if params.selectbox == nil
|
||||||
journal_papers = Mongoid::Sessions.default[:journal_papers].find()
|
journal_papers = Mongoid::Sessions.default[:journal_papers].find()
|
||||||
journal_papers_count = journal_papers.count
|
journal_papers_count = journal_papers.count
|
||||||
journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count)
|
journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count)
|
||||||
|
@ -70,7 +70,7 @@ class PersonalJournalsController < ApplicationController
|
||||||
"extras" => {"widget-title" => t("module_name.journal_paper")},
|
"extras" => {"widget-title" => t("module_name.journal_paper")},
|
||||||
"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" => "/"+OrbitHelper.params[:locale]+OrbitHelper.params[:url],
|
"url" => "/"+params[:locale]+params[:url],
|
||||||
"all" => journal_papers_temp
|
"all" => journal_papers_temp
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue