fix error
This commit is contained in:
parent
24263734b1
commit
3bdbc5dd4f
|
@ -651,6 +651,8 @@ class EventNewsController < ApplicationController
|
|||
pause_btn_title = (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"
|
||||
prev_btn_title = (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev"
|
||||
next_btn_title = (I18n.locale.to_s =="zh_tw") ? "下一張" : "next"
|
||||
speaker = event_news["speaker_translations"][locale] rescue ""
|
||||
host = event_news["host_translations"][locale] rescue ""
|
||||
{
|
||||
"tags" => tags,
|
||||
"event_news_files" => files,
|
||||
|
@ -666,8 +668,10 @@ class EventNewsController < ApplicationController
|
|||
"host-head" => EventNewsCustomTitle.get_trans('host'),
|
||||
"notes-head" => t('event_news.notes'),
|
||||
"event_date-head" => EventNewsCustomTitle.get_trans('event_date'),
|
||||
"speaker" => (event_news["speaker_translations"][locale].to_s rescue ""),
|
||||
"host" => (event_news["host_translations"][locale].to_s rescue ""),
|
||||
"speaker-css" => (speaker.blank? ? "display: none;" : ""),
|
||||
"host-css" => (host.blank? ? "display: none;" : ""),
|
||||
"speaker" => speaker,
|
||||
"host" => host,
|
||||
"notes" => (event_news["notes_translations"][locale].to_s rescue ""),
|
||||
"image" => event_news["image"]["original"],
|
||||
"img_src" => img_src,
|
||||
|
@ -744,6 +748,8 @@ class EventNewsController < ApplicationController
|
|||
"event_news_links" => links,
|
||||
"event_news_files" => files,
|
||||
"title" => a.title,
|
||||
"speaker-css" => (a.speaker.blank? ? "display: none;" : ""),
|
||||
"host-css" => (a.host.blank? ? "display: none;" : ""),
|
||||
"speaker" => a.speaker,
|
||||
"place" => a.place,
|
||||
"host" => a.host,
|
||||
|
|
Loading…
Reference in New Issue