tmp
This commit is contained in:
parent
4b3911e866
commit
ba4bc67e0e
|
@ -32,7 +32,7 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_bulletins_json
|
def get_bulletins_json
|
||||||
bulletin = Bulletin.where(params[:category_id])
|
bulletin = Bulletin.find(:bulletin_category_id)
|
||||||
data = Array.new
|
data = Array.new
|
||||||
|
|
||||||
bulletin.each do |b|
|
bulletin.each do |b|
|
||||||
|
@ -46,7 +46,7 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo
|
||||||
|
|
||||||
data << {
|
data << {
|
||||||
title: b.title,
|
title: b.title,
|
||||||
link: panel_announcement_front_end_bulletin_path(bulletin, :category_id => b.bulletin_category.id),
|
link: "http://#{request.host_with_port}#{panel_announcement_front_end_bulletin_path(b, :category_id => b.bulletin_category.id)}",
|
||||||
postdate: display_date_time(b.postdate),
|
postdate: display_date_time(b.postdate),
|
||||||
deadline: deadline,
|
deadline: deadline,
|
||||||
tag: b.sorted_tags.to_a,
|
tag: b.sorted_tags.to_a,
|
||||||
|
|
Reference in New Issue