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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
ec7461b2
Commit
ec7461b2
authored
Feb 01, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
slapos_jio: Display Network information if available to the user.
See merge request
nexedi/slapos.core!601
parents
841eaf82
69fbc9d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstance_getAllocationInformation.py
...l_json_style/SoftwareInstance_getAllocationInformation.py
+5
-2
No files found.
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/SoftwareInstance_getAllocationInformation.py
View file @
ec7461b2
...
...
@@ -3,9 +3,12 @@ if context.getAggregate() is None:
partition
=
context
.
getAggregateValue
(
checked_permission
=
"View"
)
if
partition
is
not
None
:
return
"%s (%s)"
%
(
allocation_information
=
"%s (%s)"
%
(
partition
.
getParentValue
().
getReference
(),
partition
.
getReference
())
network_title
=
partition
.
getParentValue
().
getSubordinationTitle
(
checked_permission
=
"View"
)
if
network_title
is
not
None
:
allocation_information
+=
" - %s"
%
network_title
return
allocation_information
return
context
.
Base_translateString
(
"Restricted information"
)
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