From 62fa589e8ac2006210887c02a0a3901126643383 Mon Sep 17 00:00:00 2001 From: "Matt K. Fu" Date: Wed, 24 Apr 2013 11:58:48 +0800 Subject: [PATCH] add msg when user session expired at page admin --- app/views/admin/items/_site_map_left_bar.html.erb | 9 +++++++++ config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + 3 files changed, 11 insertions(+) diff --git a/app/views/admin/items/_site_map_left_bar.html.erb b/app/views/admin/items/_site_map_left_bar.html.erb index 282f3ea2..a15f665d 100644 --- a/app/views/admin/items/_site_map_left_bar.html.erb +++ b/app/views/admin/items/_site_map_left_bar.html.erb @@ -2,5 +2,14 @@ <%= render_node_and_children(Item.first(:conditions => {:parent_id => nil})) %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 917f46d9..102ef231 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -4,6 +4,7 @@ en: access: denied: + ajax_401_error: "User session has been expired,please login again." app: not_authed_user: Access Denied for you are not User for this app not_manager: Access Denied for you are not Manager for this app diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index d6e93471..94e8d43d 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -4,6 +4,7 @@ zh_tw: access: denied: + ajax_401_error: 使用者已逾時或是登出,請重新登入 app: not_authed_user: 拒絕存取,因你不是此應用程式授權使用者 not_manager: 拒絕存取,因你不是此應用程式管理員