This commit is contained in:
BoHung Chiu 2020-09-23 21:47:07 +08:00
parent f8cf5f8390
commit 9f4efb2d8f
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class EventNewsController < ApplicationController
"is_top" => (a.is_top? ? 1 : 0),
"link_to_show" => link_to_show+"\" title=\"#{title}\"",
"target" => target,
"img_src" => a.image.thumb.url || "/assets/event_news-default.jpg",
"img_src" => a.image.thumb.url || "/assets/announcement-default.jpg",
"img_description" => desc,
"more" => t(:more_plus),
"view_count" => a.view_count
@ -250,7 +250,7 @@ class EventNewsController < ApplicationController
img_src = nil
img_description = nil
subtitle_ann = event_news.subtitle if event_news.display_subtitle?
img_src = (event_news.image.thumb.url || "/assets/event_news-default.jpg") if event_news.display_img?
img_src = (event_news.image.thumb.url || "/assets/announcement-default.jpg") if event_news.display_img?
img_description = event_news.image_description if (event_news.image_description.present?) && (event_news.display_img?)
{