Commit 638aad10 authored by Lu Xu's avatar Lu Xu 👀

slapos_cloud: Fix up default logo to display

parent 7e9ec4da
portal = context.getPortalObject()
url_string = context.getUrlString()
image_url = ""
# set default value of image_url to the panel's logo
image_url = "gadget_slapos_panel.png"
release = portal.portal_catalog.getResultValue(
portal_type="Software Release",
......@@ -8,7 +9,6 @@ release = portal.portal_catalog.getResultValue(
)
if release is not None:
software_product = release.getAggregateValue()
# set default value of image_url to the panel's logo
image_url = software_product.getDefaultImageAbsoluteUrl() or "gadget_slapos_panel.png"
image_url = software_product.getDefaultImageAbsoluteUrl()
return image_url
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment