some changes in frontend controller
This commit is contained in:
parent
b2788d099c
commit
e1a67a2d6f
|
@ -37,11 +37,11 @@ class AnnouncementsController < ApplicationController
|
|||
"announcements" => anns,
|
||||
"extras" => {
|
||||
"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')
|
||||
"title-head" => t('announcement.table.title'),
|
||||
"date-head" => t('announcement.table.date'),
|
||||
"status-head" => t('announcement.table.status'),
|
||||
"subtitle-head" => t('announcement.table.sub_title'),
|
||||
"category-head" => t('announcement.table.category')
|
||||
},
|
||||
"total_pages" => announcements.total_pages
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ class AnnouncementsController < ApplicationController
|
|||
"title" => a.title,
|
||||
"subtitle" => a.subtitle,
|
||||
"statuses" => statuses,
|
||||
|
||||
"category" => a.category.title,
|
||||
"postdate" => a.postdate.strftime("%d"),
|
||||
"date" => a.postdate.strftime("%F"),
|
||||
"year" => a.postdate.strftime("%Y"),
|
||||
|
@ -84,11 +84,11 @@ class AnnouncementsController < ApplicationController
|
|||
"announcements" => anns,
|
||||
"extras" => {
|
||||
"more_url"=>OrbitHelper.widget_more_url,
|
||||
"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')
|
||||
"title-head" => t('announcement.table.title'),
|
||||
"date-head" => t('announcement.table.date'),
|
||||
"status-head" => t('announcement.table.status'),
|
||||
"subtitle-head" => t('announcement.table.sub_title'),
|
||||
"category-head" => t('announcement.table.category')
|
||||
}
|
||||
}
|
||||
end
|
||||
|
@ -107,7 +107,7 @@ class AnnouncementsController < ApplicationController
|
|||
"title" => a.title,
|
||||
"subtitle" => a.subtitle,
|
||||
"statuses" => statuses,
|
||||
|
||||
"category" => a.category.title,
|
||||
"postdate" => a.postdate.strftime("%d"),
|
||||
"date" => a.postdate.strftime("%F"),
|
||||
"year" => a.postdate.strftime("%Y"),
|
||||
|
@ -128,7 +128,12 @@ class AnnouncementsController < ApplicationController
|
|||
{
|
||||
"announcements" => anns,
|
||||
"extras" => {
|
||||
"more_url"=>OrbitHelper.widget_more_url
|
||||
"more_url"=>OrbitHelper.widget_more_url,
|
||||
"title-head" => t('announcement.table.title'),
|
||||
"date-head" => t('announcement.table.date'),
|
||||
"status-head" => t('announcement.table.status'),
|
||||
"subtitle-head" => t('announcement.table.sub_title'),
|
||||
"category-head" => t('announcement.table.category')
|
||||
}
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue