fix error
This commit is contained in:
parent
82034a3d52
commit
7bbd8a81f2
|
@ -33,7 +33,7 @@ module AnnouncementsHelper
|
||||||
author = User.find(a.create_user_id).member_profile.name rescue ""
|
author = User.find(a.create_user_id).member_profile.name rescue ""
|
||||||
desc = a.image_description
|
desc = a.image_description
|
||||||
desc = (desc.nil? || desc == "" ? "announcement image" : desc)
|
desc = (desc.nil? || desc == "" ? "announcement image" : desc)
|
||||||
link_to_show = !a.is_external_link.to_s.empty? ? a.external_link : OrbitHelper.widget_item_url(a.to_param)
|
link_to_show = a.is_external_link? ? a.external_link : OrbitHelper.widget_item_url(a.to_param)
|
||||||
target = a.is_external_link ? "_blank" : "_self"
|
target = a.is_external_link ? "_blank" : "_self"
|
||||||
if @image_version == 'thumb'
|
if @image_version == 'thumb'
|
||||||
image_url = a.image.thumb.url
|
image_url = a.image.thumb.url
|
||||||
|
|
Loading…
Reference in New Issue