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