Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.core
Commits
ff176a4b
Commit
ff176a4b
authored
May 26, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Fixup display software logo on service list
See merge request
nexedi/slapos.core!301
parents
bd1d5b1a
638aad10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
51 deletions
+17
-51
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/HostingSubscription_getDefaultImageAbsoluteUrl.py
...s_cloud/HostingSubscription_getDefaultImageAbsoluteUrl.py
+3
-3
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscriptionModule_viewServicesListAsHateoas/listbox.xml
...gSubscriptionModule_viewServicesListAsHateoas/listbox.xml
+14
-48
No files found.
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/HostingSubscription_getDefaultImageAbsoluteUrl.py
View file @
ff176a4b
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
url_string
=
context
.
getUrlString
()
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
(
release
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
"Software Release"
,
portal_type
=
"Software Release"
,
...
@@ -8,7 +9,6 @@ release = portal.portal_catalog.getResultValue(
...
@@ -8,7 +9,6 @@ release = portal.portal_catalog.getResultValue(
)
)
if
release
is
not
None
:
if
release
is
not
None
:
software_product
=
release
.
getAggregateValue
()
software_product
=
release
.
getAggregateValue
()
# set default value of image_url to the panel's logo
image_url
=
software_product
.
getDefaultImageAbsoluteUrl
()
image_url
=
software_product
.
getDefaultImageAbsoluteUrl
()
or
"gadget_slapos_panel.png"
return
image_url
return
image_url
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscriptionModule_viewServicesListAsHateoas/listbox.xml
View file @
ff176a4b
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<string>
all_columns
</string>
<string>
all_columns
</string>
<string>
columns
</string>
<string>
columns
</string>
<string>
default_params
</string>
<string>
default_params
</string>
<string>
portal_types
</string>
<string>
selection_name
</string>
<string>
selection_name
</string>
<string>
sort
</string>
<string>
sort
</string>
<string>
style_columns
</string>
<string>
style_columns
</string>
...
@@ -104,40 +105,7 @@
...
@@ -104,40 +105,7 @@
<item>
<item>
<key>
<string>
all_columns
</string>
</key>
<key>
<string>
all_columns
</string>
</key>
<value>
<value>
<list>
<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>
</value>
</value>
</item>
</item>
<item>
<item>
...
@@ -193,6 +161,17 @@
...
@@ -193,6 +161,17 @@
</list>
</list>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
portal_types
</string>
</key>
<value>
<list>
<tuple>
<string>
Hosting Subscription
</string>
<string>
Hosting Subscription
</string>
</tuple>
</list>
</value>
</item>
<item>
<item>
<key>
<string>
selection_name
</string>
</key>
<key>
<string>
selection_name
</string>
</key>
<value>
<string>
hosting_subscription_module_hateoas_selection
</string>
</value>
<value>
<string>
hosting_subscription_module_hateoas_selection
</string>
</value>
...
@@ -211,20 +190,7 @@
...
@@ -211,20 +190,7 @@
<item>
<item>
<key>
<string>
style_columns
</string>
</key>
<key>
<string>
style_columns
</string>
</key>
<value>
<value>
<list>
<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>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment