fix error
This commit is contained in:
parent
188793747b
commit
7d8f9225be
|
@ -22,7 +22,7 @@ class WebResourcesController < ApplicationController
|
||||||
end
|
end
|
||||||
desc = link.image_description
|
desc = link.image_description
|
||||||
desc = (desc.blank? ? "web resource image" : desc)
|
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" => link.title,
|
||||||
"title_text" => text,
|
"title_text" => text,
|
||||||
|
@ -66,7 +66,7 @@ class WebResourcesController < ApplicationController
|
||||||
end
|
end
|
||||||
desc = link.image_description
|
desc = link.image_description
|
||||||
desc = (desc.blank? ? "web resource image" : desc)
|
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" => link.title,
|
||||||
"title_text" => text,
|
"title_text" => text,
|
||||||
|
|
Loading…
Reference in New Issue