forked from saurabh/personal-journal
parent
00bc6b4355
commit
b4e220918e
|
@ -96,13 +96,13 @@ class PersonalJournalsController < ApplicationController
|
||||||
choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "selected" : ""}
|
choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "selected" : ""}
|
||||||
choice_select=choice_select.map{|value| {"choice_select" => value}}
|
choice_select=choice_select.map{|value| {"choice_select" => value}}
|
||||||
choice_value=choice_value.map{|value| {"choice_value" => value}}
|
choice_value=choice_value.map{|value| {"choice_value" => value}}
|
||||||
choice_default = params[:locale]!='en' ? "——選取分類——" : "——select class——"
|
choice_default = t("personal_journal.select_class")
|
||||||
choice_show.unshift(choice_default)
|
choice_show.unshift(choice_default)
|
||||||
choice_show=choice_show.map{|value| {"choice_show" => value}}
|
choice_show=choice_show.map{|value| {"choice_show" => value}}
|
||||||
choice=choice_value.zip(choice_show,choice_select)
|
choice=choice_value.zip(choice_show,choice_select)
|
||||||
choice=choice.map{|value| value.inject:merge}
|
choice=choice.map{|value| value.inject:merge}
|
||||||
select_text = params[:locale]!='en' ? "搜尋類別:" : "search class:"
|
select_text = t("personal_journal.search_class")
|
||||||
search_text = params[:locale]!='en' ? "關鍵字搜尋:" : "word to search:"
|
search_text = t("word_to_search")
|
||||||
{
|
{
|
||||||
"journal_papers" => journal_paper_list,
|
"journal_papers" => journal_paper_list,
|
||||||
"headers" => headers,
|
"headers" => headers,
|
||||||
|
|
Loading…
Reference in New Issue