From 837dc3ea7b58c7982fad3332e8b63e4cd37df5a1 Mon Sep 17 00:00:00 2001 From: Spen Date: Mon, 8 Jul 2013 17:47:11 +0800 Subject: [PATCH] announcement init default_widget add a style & field --- vendor/built_in_modules/announcement/config/locales/en.yml | 1 + vendor/built_in_modules/announcement/config/locales/zh_tw.yml | 1 + vendor/built_in_modules/announcement/init.rb | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/built_in_modules/announcement/config/locales/en.yml b/vendor/built_in_modules/announcement/config/locales/en.yml index 89d62f7fb..4d0742606 100644 --- a/vendor/built_in_modules/announcement/config/locales/en.yml +++ b/vendor/built_in_modules/announcement/config/locales/en.yml @@ -16,6 +16,7 @@ en: bulletin_category_with_title: Bulletin Category with Title postdate: Post Date title: Title + subtitle: SubTitle editing_announcement: Edit Announcement editing_announcement_category: Edit Category error: diff --git a/vendor/built_in_modules/announcement/config/locales/zh_tw.yml b/vendor/built_in_modules/announcement/config/locales/zh_tw.yml index 04d1fe257..fc1f4affd 100644 --- a/vendor/built_in_modules/announcement/config/locales/zh_tw.yml +++ b/vendor/built_in_modules/announcement/config/locales/zh_tw.yml @@ -16,6 +16,7 @@ zh_tw: bulletin_category_with_title: 公告類別及標題 postdate: 張貼日期 title: 標題 + subtitle: 副標題 editing_announcement: 編輯類別 editing_announcement_category: 編輯類別 error: diff --git a/vendor/built_in_modules/announcement/init.rb b/vendor/built_in_modules/announcement/init.rb index 5617b12ed..0f58734a4 100644 --- a/vendor/built_in_modules/announcement/init.rb +++ b/vendor/built_in_modules/announcement/init.rb @@ -30,11 +30,12 @@ module Announcement widgets do default_widget do query 'Bulletin.any_of( {deadline: nil,:postdate.lte => Time.now} , {:deadline.gte => Time.now,:postdate.lte => Time.now} )' - enable ["typeA","typeC"] + enable ["typeA","typeB_style3","typeC"] image :image field :postdate link_field :title,{:method => 'panel_announcement_front_end_bulletin_path',:args=>:self,:preview=>true} link_field :bulletin_category_with_title,{:method => 'panel_announcement_front_end_bulletins_path',:args=>{:category_id => [:bulletin_category,:id]}} + field :subtitle link_to_more 'panel_announcement_front_end_bulletins_path',:title_i18n=> 'more_plus' end