diff --git a/src/omero/gateway/__init__.py b/src/omero/gateway/__init__.py index 42b6d956c..cfd495c2d 100644 --- a/src/omero/gateway/__init__.py +++ b/src/omero/gateway/__init__.py @@ -10451,18 +10451,21 @@ def _repr_html_(self): """ + def obj_html(obj, otype): + return f""" + {otype} + {obj.id if obj else ""} + {obj.name if obj else ""} + + """ + # create a sub-table for image information table_imageinfo = f""" - \n - \n - \n - \n - \n - \n - \n - \n - \n - \n +
Image name: {self.getName()}
Image ID: {self.getId()}
Project ID: {self.getProject().getId()}
+ + {obj_html(self, 'Image')} + {obj_html(self.getParent(), 'Dataset')} + {obj_html(self.getProject(), 'Project')}
IDName
"""