From ca7ed1fd115296a3413590572e3fe3c59dc65b64 Mon Sep 17 00:00:00 2001 From: "BOYA,CHIU" Date: Thu, 12 Aug 2021 11:31:30 +0800 Subject: [PATCH] fix error --- app/controllers/web_resources_controller.rb | 4 ++-- modules/web_resource/_web_res_widget1.html.erb | 2 +- modules/web_resource/_web_res_widget2.html.erb | 2 +- modules/web_resource/web_res_index1.html.erb | 2 +- modules/web_resource/web_res_index2.html.erb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/web_resources_controller.rb b/app/controllers/web_resources_controller.rb index e4f851d..f662044 100644 --- a/app/controllers/web_resources_controller.rb +++ b/app/controllers/web_resources_controller.rb @@ -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? ? ' hide' : '' { "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? ? ' hide' : '' { "title" => link.title, "title_text" => text, diff --git a/modules/web_resource/_web_res_widget1.html.erb b/modules/web_resource/_web_res_widget1.html.erb index dad8a43..80c965b 100644 --- a/modules/web_resource/_web_res_widget1.html.erb +++ b/modules/web_resource/_web_res_widget1.html.erb @@ -4,7 +4,7 @@