Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 15:33:35 +08:00
parent 2cfa88978d
commit 15c6cebd5e
1 changed files with 1 additions and 1 deletions

View File

@ -83,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_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
}
end