From 75e27ed849a6b9e54bd26024eff68dcb194d199f Mon Sep 17 00:00:00 2001 From: iCross Date: Wed, 29 May 2013 22:26:44 +0800 Subject: [PATCH] ask module: default status --- .../panel/ask/back_end/ask_questions/_ask_question.html.erb | 2 +- vendor/built_in_modules/ask/config/locales/en.yml | 1 + vendor/built_in_modules/ask/config/locales/zh_tw.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/built_in_modules/ask/app/views/panel/ask/back_end/ask_questions/_ask_question.html.erb b/vendor/built_in_modules/ask/app/views/panel/ask/back_end/ask_questions/_ask_question.html.erb index 7cd7942b..543b517b 100644 --- a/vendor/built_in_modules/ask/app/views/panel/ask/back_end/ask_questions/_ask_question.html.erb +++ b/vendor/built_in_modules/ask/app/views/panel/ask/back_end/ask_questions/_ask_question.html.erb @@ -3,7 +3,7 @@ <%= check_box_tag 'to_delete[]', ask_question.id, false, :class => "checkbox_in_list" %> - <%= ask_question.ask_reply ? ask_question.ask_reply.status : '' %> + <%= ask_question.ask_reply ? ask_question.ask_reply.status : t('ask.pending') %> <%= ask_question.ask_category.name %> diff --git a/vendor/built_in_modules/ask/config/locales/en.yml b/vendor/built_in_modules/ask/config/locales/en.yml index 8ff7dc55..a4aeacae 100644 --- a/vendor/built_in_modules/ask/config/locales/en.yml +++ b/vendor/built_in_modules/ask/config/locales/en.yml @@ -16,6 +16,7 @@ en: acknowledgement: Acknowledgement admin: Administrator new_question: New question + pending: Pending mongoid: attributes: ask_question: diff --git a/vendor/built_in_modules/ask/config/locales/zh_tw.yml b/vendor/built_in_modules/ask/config/locales/zh_tw.yml index 7d597233..0b8109b1 100644 --- a/vendor/built_in_modules/ask/config/locales/zh_tw.yml +++ b/vendor/built_in_modules/ask/config/locales/zh_tw.yml @@ -21,6 +21,7 @@ zh_tw: acknowledgement: 感謝詞 admin: 管理者 new_question: 新的發問 + pending: 待處理 mongoid: attributes: ask_question: