From 73fbed8837ad385caac1cf55cf2736d91678d0d1 Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Tue, 26 Jun 2012 10:04:40 +0800 Subject: [PATCH] fix 1.page_content user empty problem 2.add i18n variable for news and announcement --- .../back_end/page_contexts/_page_context.html.erb | 2 +- .../panel/web_resource/back_end/web_links/_form.html.erb | 8 ++++---- .../web_resource/back_end/web_links/_web_link.html.erb | 4 ++-- .../web_resource/config/locales/zh_tw.yml | 4 ++++ 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/vendor/built_in_modules/page_content/app/views/panel/page_content/back_end/page_contexts/_page_context.html.erb b/vendor/built_in_modules/page_content/app/views/panel/page_content/back_end/page_contexts/_page_context.html.erb index 7e056432..80862d04 100644 --- a/vendor/built_in_modules/page_content/app/views/panel/page_content/back_end/page_contexts/_page_context.html.erb +++ b/vendor/built_in_modules/page_content/app/views/panel/page_content/back_end/page_contexts/_page_context.html.erb @@ -19,5 +19,5 @@ <%end -%> <%= display_date_time(page_context.updated_at) %> - <%= User.find(page_context.create_user_id).name %> + <%= User.find(page_context.create_user_id).name rescue '' %> \ No newline at end of file diff --git a/vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_links/_form.html.erb b/vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_links/_form.html.erb index 03d11db1..60574b94 100644 --- a/vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_links/_form.html.erb +++ b/vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_links/_form.html.erb @@ -53,7 +53,7 @@
- <%= f.label :category %> + <%= f.label :category ,t("web_resource.category")%> <%= f.select :web_link_category_id, @web_link_categorys.collect {|t| [ t.i18n_variable[I18n.locale], t.id ]} %>