fix error

This commit is contained in:
邱博亞 2023-04-08 22:03:13 +08:00
parent b46bfee8d7
commit 09b6b81f5a
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ module EventNewsHelper
x = {
"event_news_links" => links,
"event_news_files" => files,
"event_carousel_images" => fa["bulletin_carousel_images"].to_a,
"event_carousel_images" => fa["event_carousel_images"].to_a,
"title" => fa["title_translations"][locale],
"speaker-css" => (fa["speaker_translations"][locale].blank? ? "display: none;" : ""),
"host-css" => (fa["host_translations"][locale].blank? ? "display: none;" : ""),

View File

@ -124,7 +124,7 @@ class EventNewsFeed
a["subtitle_ann"] = anns.subtitle if anns.display_subtitle?
a["bulletin_links"] = []
a["bulletin_files"] = []
a["bulletin_carousel_images"] = anns.bulletin_carousel_images.map{|image| {"src"=>"#{base_url}" + image.file.url,"description"=>image.description.to_s,"description_text"=>image.description_text }}
a["event_carousel_images"] = anns.event_carousel_images.map{|image| {"src"=>"#{base_url}" + image.file.url,"description"=>image.description.to_s,"description_text"=>image.description_text }}
a["external_link"] = anns["is_external_link"] ? anns.external_link : nil
anns.tags.each do |tag|
if !tag_ids.include?(tag.id.to_s)