default widget link.

make sure to run
rake migrate:make_default_widget_work_config
for changing announcement module app
This commit is contained in:
Fu Matthew authored and chris committed 2013-01-07 17:20:37 +08:00
1 parent a34da20e48
commit 5793f0fe5d
16 files changed
+100 -50

No files matched your search

@@ -77,6 +77,15 @@ class Bulletin
string :bulletin_category_id
end
def postdate_with_format
self[:postdate].strftime("%m/%d/%Y")
end
def bulletin_category_with_title
self.bulletin_category.title
end
def share_item
Item.first(conditions:{name: 'announcement'})
end
@@ -15,3 +15,7 @@ zh_tw:
search: 搜尋公告
update_bulletin_success: 公告已成功更新
update_bulletin_category_success: 公告類別已成功更新
default_widget:
bulletin_category_with_title: 分類
title: 標題
postdate_with_format: 張貼日期