fix error

This commit is contained in:
BOYA,CHIU 2021-08-23 19:51:08 +08:00
parent f2215be917
commit e9d82304a2
2 changed files with 8 additions and 5 deletions

View File

@ -566,6 +566,7 @@ class EventNewsController < ApplicationController
"notes-head" => t('event_news.notes'),
"speaker" => event_news.speaker,
"speaker-css" => (event_news.speaker.blank? ? "display: none;" : "display: inline-block;"),
"host-css" => (event_news.host.blank? ? "display: none;" : "display: inline-block;"),
"host" => event_news.host,
"notes" => event_news.notes,
"title" => event_news.title,

View File

@ -161,12 +161,14 @@
<span>{{speaker-head}}:</span>
<span>{{speaker}}</span>
</span>
<span>&nbsp;/&nbsp;</span>
<span style="display: inline-block;">
<span>{{host-head}}:</span>
<span>{{host}}</span>
<span style="{{host-css}}">
<span>&nbsp;/&nbsp;</span>
<span style="display: inline-block;">
<span>{{host-head}}:</span>
<span>{{host}}</span>
</span>
<div>{{place_text}}</div>
</span>
<div>{{place_text}}</div>
</li>
</ul>