added table header for table layout
This commit is contained in:
1 parent
18f9611d0a
commit
491ef9237c
3 files changed
+19
-2
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user