Commit ff176a4b authored by Rafael Monnerat's avatar Rafael Monnerat

Fixup display software logo on service list

See merge request nexedi/slapos.core!301
parents bd1d5b1a 638aad10
Pipeline #15664 failed with stage
in 0 seconds
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
......@@ -13,6 +13,7 @@
<string>all_columns</string>
<string>columns</string>
<string>default_params</string>
<string>portal_types</string>
<string>selection_name</string>
<string>sort</string>
<string>style_columns</string>
......@@ -104,40 +105,7 @@
<item>
<key> <string>all_columns</string> </key>
<value>
<list>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>modification_date</string>
<string>Modification Date</string>
</tuple>
<tuple>
<string>url_string</string>
<string>Software Release</string>
</tuple>
<tuple>
<string>list_image</string>
<string>Software Logo</string>
</tuple>
<tuple>
<string>reference</string>
<string>Reference</string>
</tuple>
<tuple>
<string>translated_validation_state_title</string>
<string>Validation State</string>
</tuple>
<tuple>
<string>translated_slap_state_title</string>
<string>Slap State</string>
</tuple>
<tuple>
<string>destination_section_title</string>
<string>Destination Section</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -193,6 +161,17 @@
</list>
</value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value>
<list>
<tuple>
<string>Hosting Subscription</string>
<string>Hosting Subscription</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string>hosting_subscription_module_hateoas_selection</string> </value>
......@@ -211,20 +190,7 @@
<item>
<key> <string>style_columns</string> </key>
<value>
<list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>short_title</string>
<string>Short Title</string>
</tuple>
<tuple>
<string>HostingSubscription_getNewsDict</string>
<string>Status</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......
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