fix error
This commit is contained in:
parent
7d8f9225be
commit
ca7ed1fd11
|
@ -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,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</h3>
|
||||
<ul class="list-unstyled" data-level="0" data-list="web_link">
|
||||
<li class="widget-content">
|
||||
<div class="link-img-wrap" {{display_image}}>
|
||||
<div class="link-img-wrap{{display_image}}">
|
||||
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||
</div>
|
||||
<a class="widget-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">{{title}}</a>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</h3>
|
||||
<ul class="list-unstyled" data-level="0" data-list="web_link">
|
||||
<li class="widget-content widget-content-horizontal">
|
||||
<div class="link-img-wrap" {{display_image}}>
|
||||
<div class="link-img-wrap{{display_image}}">
|
||||
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||
</div>
|
||||
<a class="widget-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">{{title}}</a>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<ul class="list-unstyled" data-list="web_link" data-level="0">
|
||||
<li class="index-content">
|
||||
<a class="index-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">
|
||||
<div class="link-img-wrap" {{display_image}}>
|
||||
<div class="link-img-wrap{{display_image}}">
|
||||
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||
</div>
|
||||
<h4>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<ul class="list-unstyled" data-list="web_link" data-level="0">
|
||||
<li class="index-content col-md-4 col-sm-4">
|
||||
<a class="index-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">
|
||||
<div class="link-img-wrap" {{display_image}}>
|
||||
<div class="link-img-wrap{{display_image}}">
|
||||
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||
</div>
|
||||
<h4>
|
||||
|
|
Loading…
Reference in New Issue