added table header for table layout

This commit is contained in:
Harry Bomrah 2014-09-19 15:28:17 +08:00
parent 18f9611d0a
commit 491ef9237c
3 changed files with 19 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class AnnouncementsController < ApplicationController
"title" => a.title,
"subtitle" => a.subtitle,
"statuses" => statuses,
"category" => a.category.title,
"postdate" => a.postdate.strftime("%b %d, %Y at %I:%M %p"),
"date" => a.postdate.strftime("%F"),
"year" => a.postdate.strftime("%Y"),
@ -36,7 +36,12 @@ class AnnouncementsController < ApplicationController
{
"announcements" => anns,
"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
}

View File

@ -1,6 +1,12 @@
en:
announcement:
table:
title : Title
date : Date
status : Status
sub_title: Sub Title
category: Category
add_new: Add New
all_articles: All Articles
announcement: Announcement

View File

@ -1,6 +1,12 @@
zh_tw:
announcement:
table:
title : 標題
date : 張貼日期
status : 標籤
sub_title: 副標題
category: 類別
add_new: 新建
all_articles: 文章列表
announcement: 公告