forked from saurabh/personal-book
parent
e523087b96
commit
7f4b994670
|
@ -97,13 +97,13 @@ class PersonalBooksController < ApplicationController
|
|||
choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "selected" : ""}
|
||||
choice_select=choice_select.map{|value| {"choice_select" => value}}
|
||||
choice_value=choice_value.map{|value| {"choice_value" => value}}
|
||||
choice_default = params[:locale]!='en' ? "——選取分類——" : "——select class——"
|
||||
choice_default = t("personal_book.select_class")
|
||||
choice_show.unshift(choice_default)
|
||||
choice_show=choice_show.map{|value| {"choice_show" => value}}
|
||||
choice=choice_value.zip(choice_show,choice_select)
|
||||
choice=choice.map{|value| value.inject:merge}
|
||||
select_text = params[:locale]!='en' ? "搜尋類別:" : "search class:"
|
||||
search_text = params[:locale]!='en' ? "關鍵字搜尋:" : "word to search:"
|
||||
select_text = t("personal_book.search_class")
|
||||
search_text = t("personal_book.word_to_search")
|
||||
{
|
||||
"book_list" => book_list,
|
||||
"extras" => {"widget-title" => t("module_name.book"),
|
||||
|
|
Loading…
Reference in New Issue