fix error

This commit is contained in:
BOYA,CHIU 2021-08-12 11:27:56 +08:00
parent 188793747b
commit 7d8f9225be
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class WebResourcesController < ApplicationController
end
desc = link.image_description
desc = (desc.blank? ? "web resource image" : desc)
display_image = link.image.thumb.url.blank? 'style="display: none;"' : ''
display_image = link.image.thumb.url.blank? ? 'style="display: none;"' : ''
{
"title" => link.title,
"title_text" => text,
@ -66,7 +66,7 @@ class WebResourcesController < ApplicationController
end
desc = link.image_description
desc = (desc.blank? ? "web resource image" : desc)
display_image = link.image.thumb.url.blank? 'style="display: none;"' : ''
display_image = link.image.thumb.url.blank? ? 'style="display: none;"' : ''
{
"title" => link.title,
"title_text" => text,