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 committed 2013-01-04 18:42:25 +08:00
1 parent 3e8b029c5f
commit 5efbe07fbe
16 files changed
+98 -42

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: 張貼日期