forked from saurabh/personal-journal
Update personal_journals_controller.rb
This commit is contained in:
parent
2cfa88978d
commit
15c6cebd5e
|
@ -83,7 +83,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" => JournalPaper.where(:is_hidden=>false).take(4).sort_by{ |tp| [-tp[:year].to_i,-tp[:publication_date].to_i] },
|
||||||
"all_n" => JournalPaper.where(:is_hidden=>false).count
|
"all_n" => JournalPaper.where(:is_hidden=>false).count
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue