added table header for table layout
This commit is contained in:
parent
18f9611d0a
commit
491ef9237c
|
@ -14,7 +14,7 @@ class AnnouncementsController < ApplicationController
|
||||||
"title" => a.title,
|
"title" => a.title,
|
||||||
"subtitle" => a.subtitle,
|
"subtitle" => a.subtitle,
|
||||||
"statuses" => statuses,
|
"statuses" => statuses,
|
||||||
|
"category" => a.category.title,
|
||||||
"postdate" => a.postdate.strftime("%b %d, %Y at %I:%M %p"),
|
"postdate" => a.postdate.strftime("%b %d, %Y at %I:%M %p"),
|
||||||
"date" => a.postdate.strftime("%F"),
|
"date" => a.postdate.strftime("%F"),
|
||||||
"year" => a.postdate.strftime("%Y"),
|
"year" => a.postdate.strftime("%Y"),
|
||||||
|
@ -36,7 +36,12 @@ class AnnouncementsController < ApplicationController
|
||||||
{
|
{
|
||||||
"announcements" => anns,
|
"announcements" => anns,
|
||||||
"extras" => {
|
"extras" => {
|
||||||
"widget-title"=>t('announcement.announcement')
|
"widget-title" =>t('announcement.announcement'),
|
||||||
|
"title_head" => t('announcement.table.title'),
|
||||||
|
"date_head" => t('announcement.table.date'),
|
||||||
|
"status_head" => t('announcement.table.status'),
|
||||||
|
"sub_title_head" => t('announcement.table.sub_title'),
|
||||||
|
"category_head" => t('announcement.table.category')
|
||||||
},
|
},
|
||||||
"total_pages" => announcements.total_pages
|
"total_pages" => announcements.total_pages
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
en:
|
en:
|
||||||
|
|
||||||
announcement:
|
announcement:
|
||||||
|
table:
|
||||||
|
title : Title
|
||||||
|
date : Date
|
||||||
|
status : Status
|
||||||
|
sub_title: Sub Title
|
||||||
|
category: Category
|
||||||
add_new: Add New
|
add_new: Add New
|
||||||
all_articles: All Articles
|
all_articles: All Articles
|
||||||
announcement: Announcement
|
announcement: Announcement
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
zh_tw:
|
zh_tw:
|
||||||
|
|
||||||
announcement:
|
announcement:
|
||||||
|
table:
|
||||||
|
title : 標題
|
||||||
|
date : 張貼日期
|
||||||
|
status : 標籤
|
||||||
|
sub_title: 副標題
|
||||||
|
category: 類別
|
||||||
add_new: 新建
|
add_new: 新建
|
||||||
all_articles: 文章列表
|
all_articles: 文章列表
|
||||||
announcement: 公告
|
announcement: 公告
|
||||||
|
|
Loading…
Reference in New Issue