Commit 69fbc9d4 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Display Network information if available to the user.

parent cb5e1ffc
......@@ -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")
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