Commit ec7461b2 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Display Network information if available to the user.

See merge request nexedi/slapos.core!601
parents 841eaf82 69fbc9d4
......@@ -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