fix error
This commit is contained in:
parent
4479710543
commit
ae965bbb6a
|
@ -60,10 +60,14 @@ class SiteFeedAnnc
|
||||||
tmp["subtitle"] = tmp["subtitle_translations"][locale]
|
tmp["subtitle"] = tmp["subtitle_translations"][locale]
|
||||||
tmp["source-site-link"] = tmp["source-site"]
|
tmp["source-site-link"] = tmp["source-site"]
|
||||||
tmp["source-site"] = "<a href='#{tmp["source-site"]}' target='_blank' class='feed-source'>#{tmp["source-site-title"]}</a>"
|
tmp["source-site"] = "<a href='#{tmp["source-site"]}' target='_blank' class='feed-source'>#{tmp["source-site-title"]}</a>"
|
||||||
if !is_widget
|
if !tmp["external_link"].blank?
|
||||||
tmp["link_to_show"] = OrbitHelper.url_to_show(tmp["params"]) rescue ''
|
tmp["link_to_show"] = tmp["external_link"]
|
||||||
else
|
else
|
||||||
tmp["link_to_show"] = OrbitHelper.widget_item_url(tmp["params"]) rescue ''
|
if !is_widget
|
||||||
|
tmp["link_to_show"] = OrbitHelper.url_to_show(tmp["params"]) rescue ''
|
||||||
|
else
|
||||||
|
tmp["link_to_show"] = OrbitHelper.widget_item_url(tmp["params"]) rescue ''
|
||||||
|
end
|
||||||
end
|
end
|
||||||
tmp["target"] = "_self"
|
tmp["target"] = "_self"
|
||||||
tmp["img_src"] = tmp["image"]["thumb"] || "/assets/announcement-default.jpg"
|
tmp["img_src"] = tmp["image"]["thumb"] || "/assets/announcement-default.jpg"
|
||||||
|
|
Loading…
Reference in New Issue